SPT-AKI-Installer/SPTInstaller/CustomControls/PreCheckDetails.axaml.cs

32 lines
957 B
C#
Raw Normal View History

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