C# Class Catel.Windows.Interactivity.FocusOnKeyPress

Behavior to set the focus on a key press.
Inheritance: FocusBehaviorBase
Mostra file Open project: Catel/Catel

Public Properties

Property Type Description
KeyProperty System.Windows.DependencyProperty
ModifiersProperty System.Windows.DependencyProperty

Public Methods

Method Description
FocusOnKeyPress ( ) : global::Windows.UI.Core

Initializes a new instance of the FocusOnKeyPress class.

Protected Methods

Method Description
OnAssociatedObjectLoaded ( ) : void

Called when the Behavior{T}.AssociatedObject is loaded.

OnAssociatedObjectUnloaded ( ) : void

Called when the Behavior{T}.AssociatedObject is unloaded.

Private Methods

Method Description
OnKeyDown ( object sender, global::Windows.UI.Xaml.Input.KeyRoutedEventArgs e ) : void

Called when the specified key is pressed.

Subscribe ( ) : void
Unsubscribe ( ) : void

Method Details

FocusOnKeyPress() public method

Initializes a new instance of the FocusOnKeyPress class.
public FocusOnKeyPress ( ) : global::Windows.UI.Core
return global::Windows.UI.Core

OnAssociatedObjectLoaded() protected method

Called when the Behavior{T}.AssociatedObject is loaded.
protected OnAssociatedObjectLoaded ( ) : void
return void

OnAssociatedObjectUnloaded() protected method

Called when the Behavior{T}.AssociatedObject is unloaded.
protected OnAssociatedObjectUnloaded ( ) : void
return void

Property Details

KeyProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Key. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows KeyProperty
return System.Windows.DependencyProperty

ModifiersProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Modifiers. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ModifiersProperty
return System.Windows.DependencyProperty