32 lines
851 B
C#
32 lines
851 B
C#
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<ICommand?> CommandProperty =
|
|
AvaloniaProperty.Register<HeroCard, ICommand?>(nameof(Command));
|
|
|
|
public static readonly StyledProperty<object?> CommandParameterProperty =
|
|
AvaloniaProperty.Register<HeroCard, object?>(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();
|
|
}
|
|
}
|