KeyPressToCommand

Name Value
Assembly Catel.MVVM
Namespace Catel.Windows.Interactivity
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - iOS
public class KeyPressToCommand : CommandBehaviorBase<FrameworkElement>

Base types CommandBehaviorBase

Behavior that converts a key press on a specific UI element to a command.

Fields

KeyProperty

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

Properties

Key

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

Methods


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


Discussion