using Avalonia; using Avalonia.Controls; using Avalonia.ReactiveUI; namespace SPTInstaller.CustomControls; public partial class StatusSpinner : ReactiveUserControl { public enum SpinnerState { Pending = -1, Running = 0, OK = 1, Warning = 2, Error = 3, } public StatusSpinner() { InitializeComponent(); } public SpinnerState State { get => GetValue(StateProperty); set => SetValue(StateProperty, value); } public static readonly StyledProperty StateProperty = AvaloniaProperty.Register(nameof(State)); }