FocusOnKeyPress

Name Value
Assembly Catel.MVVM
Namespace Catel.Windows.Interactivity
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - iOS
public class FocusOnKeyPress : FocusBehaviorBase

Base types FocusBehaviorBase

Behavior to set the focus on a key press.

Fields

KeyProperty

Using a DependencyProperty as the backing store for Key. This enables animation, styling, binding, etc…

ModifiersProperty

Using a DependencyProperty as the backing store for Modifiers. This enables animation, styling, binding, etc…

Constructors

FocusOnKeyPress()

Initializes a new instance of the FocusOnKeyPress class.

Properties

Key

Gets or sets the key to which the behavior should respond.

Modifiers

Gets or sets the modifiers to check for.

Methods

OnAssociatedObjectLoaded()

Called when the is loaded.

OnAssociatedObjectUnloaded()

Called when the is unloaded.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion