2023-08-25 19:09:36 -04:00
|
|
|
|
using Avalonia;
|
2023-05-11 23:11:39 -04:00
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
|
namespace SPTInstaller.CustomControls;
|
|
|
|
|
|
|
|
|
|
public partial class PreCheckItem : UserControl
|
2023-05-11 23:11:39 -04:00
|
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
|
public PreCheckItem()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string PreCheckName
|
2023-05-11 23:11:39 -04:00
|
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
|
get => GetValue(PreCheckNameProperty);
|
|
|
|
|
set => SetValue(PreCheckNameProperty, value);
|
2023-05-11 23:11:39 -04:00
|
|
|
|
}
|
2023-07-12 09:19:33 +02:00
|
|
|
|
|
|
|
|
|
public static readonly StyledProperty<string> PreCheckNameProperty =
|
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, string>(nameof(PreCheckName));
|
|
|
|
|
|
|
|
|
|
public bool IsRequired
|
|
|
|
|
{
|
|
|
|
|
get => GetValue(IsRequiredProperty);
|
|
|
|
|
set => SetValue(IsRequiredProperty, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> IsRequiredProperty =
|
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, bool>(nameof(IsRequired));
|
2023-08-25 19:09:36 -04:00
|
|
|
|
|
|
|
|
|
public StatusSpinner.SpinnerState State
|
|
|
|
|
{
|
|
|
|
|
get => GetValue(StateProperty);
|
|
|
|
|
set => SetValue(StateProperty, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static readonly StyledProperty<StatusSpinner.SpinnerState> StateProperty =
|
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, StatusSpinner.SpinnerState>(nameof(State));
|
2023-07-12 09:19:33 +02:00
|
|
|
|
}
|