using Avalonia; using Avalonia.Controls; using Avalonia.Input; namespace Ursa.Controls; public class NumPadButton: RepeatButton { public static readonly StyledProperty NumKeyProperty = AvaloniaProperty.Register( nameof(NumKey)); public Key? NumKey { get => GetValue(NumKeyProperty); set => SetValue(NumKeyProperty, value); } public static readonly StyledProperty FunctionKeyProperty = AvaloniaProperty.Register( nameof(FunctionKey)); public Key? FunctionKey { get => GetValue(FunctionKeyProperty); set => SetValue(FunctionKeyProperty, value); } public static readonly StyledProperty NumModeProperty = AvaloniaProperty.Register( nameof(NumMode)); public bool NumMode { get => GetValue(NumModeProperty); set => SetValue(NumModeProperty, value); } public static readonly StyledProperty NumContentProperty = AvaloniaProperty.Register( nameof(NumContent)); public object? NumContent { get => GetValue(NumContentProperty); set => SetValue(NumContentProperty, value); } public static readonly StyledProperty FunctionContentProperty = AvaloniaProperty.Register( nameof(FunctionContent)); public object? FunctionContent { get => GetValue(FunctionContentProperty); set => SetValue(FunctionContentProperty, value); } }