LANCommander/LANCommander.Launcher/Views/Components/HeroCard.axaml.cs

33 lines
851 B
C#
Raw Permalink Normal View History

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();
}
}