2024-03-25 16:12:15 -04:00
|
|
|
|
using System.Collections.ObjectModel;
|
2024-03-24 20:52:42 -04:00
|
|
|
|
using Avalonia;
|
|
|
|
|
using Avalonia.Controls;
|
2024-03-25 16:12:15 -04:00
|
|
|
|
using SPTInstaller.Models;
|
2024-03-24 20:52:42 -04:00
|
|
|
|
|
|
|
|
|
namespace SPTInstaller.CustomControls;
|
|
|
|
|
|
|
|
|
|
public partial class PreCheckDetails : UserControl
|
|
|
|
|
{
|
|
|
|
|
public PreCheckDetails()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2024-03-25 16:12:15 -04:00
|
|
|
|
public static readonly StyledProperty<ObservableCollection<PreCheckBase>> PreChecksProperty =
|
|
|
|
|
AvaloniaProperty.Register<PreCheckDetails, ObservableCollection<PreCheckBase>>(nameof(PreChecks));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2024-03-25 16:12:15 -04:00
|
|
|
|
public ObservableCollection<PreCheckBase> PreChecks
|
2024-03-24 20:52:42 -04:00
|
|
|
|
{
|
2024-03-25 16:12:15 -04:00
|
|
|
|
get => GetValue(PreChecksProperty);
|
|
|
|
|
set => SetValue(PreChecksProperty, value);
|
2024-03-24 20:52:42 -04:00
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2024-03-25 18:19:16 -04:00
|
|
|
|
public static readonly StyledProperty<bool> HasSelectionProperty =
|
|
|
|
|
AvaloniaProperty.Register<PreCheckDetails, bool>(nameof(HasSelection));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2024-03-25 18:19:16 -04:00
|
|
|
|
public bool HasSelection
|
2024-03-24 20:52:42 -04:00
|
|
|
|
{
|
2024-03-25 18:19:16 -04:00
|
|
|
|
get => GetValue(HasSelectionProperty);
|
|
|
|
|
set => SetValue(HasSelectionProperty, value);
|
2024-03-24 20:52:42 -04:00
|
|
|
|
}
|
|
|
|
|
}
|