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 IsRunning { get => GetValue(IsRunningProperty); set => SetValue(IsRunningProperty, value); } public static readonly StyledProperty IsRunningProperty = AvaloniaProperty.Register(nameof(IsRunning)); public bool IsPending { get => GetValue(IsPendingProperty); set => SetValue(IsPendingProperty, value); } public static readonly StyledProperty IsPendingProperty = AvaloniaProperty.Register(nameof(IsPending)); public bool Passed { get => GetValue(PassedProperty); set => SetValue(PassedProperty, value); } public static readonly StyledProperty PassedProperty = AvaloniaProperty.Register(nameof(Passed)); public bool IsRequired { get => GetValue(IsRequiredProperty); set => SetValue(IsRequiredProperty, value); } public static readonly StyledProperty IsRequiredProperty = AvaloniaProperty.Register(nameof(IsRequired)); }