using Avalonia.Input;
namespace Avalonia.Xaml.Interactions.Custom;
///
///
///
public abstract class ExecuteCommandOnKeyBehaviorBase : ExecuteCommandRoutedEventBehaviorBase
{
///
///
///
public static readonly StyledProperty KeyProperty =
AvaloniaProperty.Register(nameof(Key));
///
///
///
public static readonly StyledProperty GestureProperty =
AvaloniaProperty.Register(nameof(Gesture));
///
///
///
public Key? Key
{
get => GetValue(KeyProperty);
set => SetValue(KeyProperty, value);
}
///
///
///
public KeyGesture? Gesture
{
get => GetValue(GestureProperty);
set => SetValue(GestureProperty, value);
}
}