using Avalonia; using Avalonia.Controls; using DialogHostAvalonia; using SPTInstaller.CustomControls.Dialogs; using System.Threading.Tasks; namespace SPTInstaller.CustomControls; public partial class CacheInfo : UserControl { public CacheInfo() { InitializeComponent(); } public async Task ShowCacheDialogCommand() => await DialogHost.Show(new WhyCacheThoughDialog()); public string InfoText { get => GetValue(InfoTextProperty); set => SetValue(InfoTextProperty, value); } public static readonly StyledProperty InfoTextProperty = AvaloniaProperty.Register(nameof(InfoText)); public StatusSpinner.SpinnerState State { get => GetValue(StateProperty); set => SetValue(StateProperty, value); } public static readonly StyledProperty StateProperty = AvaloniaProperty.Register(nameof(State)); }