using System.Windows.Input; using Avalonia; using Avalonia.Controls; using Avalonia.Input; namespace LANCommander.Launcher.Views.Components; public partial class HeroCard : UserControl { public static readonly StyledProperty CommandProperty = AvaloniaProperty.Register(nameof(Command)); public static readonly StyledProperty CommandParameterProperty = AvaloniaProperty.Register(nameof(CommandParameter)); public ICommand? Command { get => GetValue(CommandProperty); set => SetValue(CommandProperty, value); } public object? CommandParameter { get => GetValue(CommandParameterProperty); set => SetValue(CommandParameterProperty, value); } public HeroCard() { InitializeComponent(); } }