using Avalonia; using Avalonia.Controls; namespace SPTInstaller.CustomControls; public partial class PreCheckItem : UserControl { public PreCheckItem() { InitializeComponent(); } public string PreCheckName { get => GetValue(PreCheckNameProperty); set => SetValue(PreCheckNameProperty, value); } public static readonly StyledProperty PreCheckNameProperty = AvaloniaProperty.Register(nameof(PreCheckName)); public bool IsRequired { get => GetValue(IsRequiredProperty); set => SetValue(IsRequiredProperty, value); } public static readonly StyledProperty IsRequiredProperty = AvaloniaProperty.Register(nameof(IsRequired)); public StatusSpinner.SpinnerState State { get => GetValue(StateProperty); set => SetValue(StateProperty, value); } public static readonly StyledProperty StateProperty = AvaloniaProperty.Register(nameof(State)); }