C# Class LinqTwit.Infrastructure.FocusBehavior

Inheritance: System.Windows.DependencyObject
Afficher le fichier Open project: ArildF/linqtwit

Méthodes publiques

Свойство Type Description
BindableFocusProperty System.Windows.DependencyProperty
FocusFirstElementOnLoadedProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetBindableFocus ( UIElement obj ) : bool
GetFocusFirstElementOnLoaded ( DependencyObject obj ) : bool
SetBindableFocus ( UIElement obj, bool value ) : void
SetFocusFirstElementOnLoaded ( DependencyObject obj, bool value ) : void

Private Methods

Méthode Description
BindableFocusChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
FocusElement ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
FocusFirstElementOnLoaded ( object sender, RoutedEventArgs args ) : void
FocusFirstElementOnLoadedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes on the FocusFirstElementOnLoadedProperty dependency property. As WPF internally uses the dependency property system and bypasses the FocusFirstElement property wrapper, updates should be handled here.

GotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
HookEvents ( UIElement c ) : void
LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void

Method Details

GetBindableFocus() public static méthode

public static GetBindableFocus ( UIElement obj ) : bool
obj System.Windows.UIElement
Résultat bool

GetFocusFirstElementOnLoaded() public static méthode

public static GetFocusFirstElementOnLoaded ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

SetBindableFocus() public static méthode

public static SetBindableFocus ( UIElement obj, bool value ) : void
obj System.Windows.UIElement
value bool
Résultat void

SetFocusFirstElementOnLoaded() public static méthode

public static SetFocusFirstElementOnLoaded ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

Property Details

BindableFocusProperty public_oe static_oe property

Command Dependency Property.
public static DependencyProperty,System.Windows BindableFocusProperty
Résultat System.Windows.DependencyProperty

FocusFirstElementOnLoadedProperty public_oe static_oe property

public static DependencyProperty,System.Windows FocusFirstElementOnLoadedProperty
Résultat System.Windows.DependencyProperty