using System.Windows.Input; using Avalonia; using Avalonia.Controls; namespace LANCommander.Launcher.Views.Components; public partial class DownloadQueueItemView : UserControl { public static readonly StyledProperty ToggleExpandedCommandProperty = AvaloniaProperty.Register(nameof(ToggleExpandedCommand)); public static readonly StyledProperty CancelCommandProperty = AvaloniaProperty.Register(nameof(CancelCommand)); public static readonly StyledProperty RemoveCommandProperty = AvaloniaProperty.Register(nameof(RemoveCommand)); public static readonly StyledProperty ViewInLibraryCommandProperty = AvaloniaProperty.Register(nameof(ViewInLibraryCommand)); public static readonly StyledProperty PlayCommandProperty = AvaloniaProperty.Register(nameof(PlayCommand)); public ICommand? ToggleExpandedCommand { get => GetValue(ToggleExpandedCommandProperty); set => SetValue(ToggleExpandedCommandProperty, value); } public ICommand? CancelCommand { get => GetValue(CancelCommandProperty); set => SetValue(CancelCommandProperty, value); } public ICommand? RemoveCommand { get => GetValue(RemoveCommandProperty); set => SetValue(RemoveCommandProperty, value); } public ICommand? ViewInLibraryCommand { get => GetValue(ViewInLibraryCommandProperty); set => SetValue(ViewInLibraryCommandProperty, value); } public ICommand? PlayCommand { get => GetValue(PlayCommandProperty); set => SetValue(PlayCommandProperty, value); } public DownloadQueueItemView() { InitializeComponent(); } }