using Avalonia; using Avalonia.Controls; using System.Windows.Input; namespace SPTInstaller.CustomControls; public partial class UpdateInfoCard : UserControl { public UpdateInfoCard() { InitializeComponent(); } public bool ShowUpdateCard { get => GetValue(ShowUpdateCardProperty); set => SetValue(ShowUpdateCardProperty, value); } public static readonly StyledProperty ShowUpdateCardProperty = AvaloniaProperty.Register(nameof(ShowUpdateCard)); public bool Updating { get => GetValue(UpdatingProperty); set => SetValue(UpdatingProperty, value); } public static readonly StyledProperty UpdatingProperty = AvaloniaProperty.Register(nameof(Updating)); public bool UpdateAvailable { get => GetValue(UpdateAvailableProperty); set => SetValue(UpdateAvailableProperty, value); } public static readonly StyledProperty UpdateAvailableProperty = AvaloniaProperty.Register(nameof(UpdateAvailable)); public bool IndeterminateProgress { get => GetValue(IndeterminateProgressProperty); set => SetValue(IndeterminateProgressProperty, value); } public static readonly StyledProperty IndeterminateProgressProperty = AvaloniaProperty.Register(nameof(IndeterminateProgress)); public string InfoText { get => GetValue(InfoTextProperty); set => SetValue(InfoTextProperty, value); } public static readonly StyledProperty InfoTextProperty = AvaloniaProperty.Register(nameof(InfoText)); public int DownloadProgress { get => GetValue(DownloadProgressProperty); set => SetValue(DownloadProgressProperty, value); } public static readonly StyledProperty DownloadProgressProperty = AvaloniaProperty.Register(nameof(DownloadProgress)); public ICommand NotNowCommand { get => GetValue(NotNowCommandProperty); set => SetValue(NotNowCommandProperty, value); } public static readonly StyledProperty NotNowCommandProperty = AvaloniaProperty.Register(nameof(NotNowCommand)); public ICommand UpdateInstallerCommand { get => GetValue(UpdateInstallerCommandProperty); set => SetValue(UpdateInstallerCommandProperty, value); } public static readonly StyledProperty UpdateInstallerCommandProperty = AvaloniaProperty.Register(nameof(UpdateInstallerCommand)); }