using System.Windows.Input; using Avalonia; using Avalonia.Controls; namespace SPTInstaller.CustomControls; public partial class PreCheckDetails : UserControl { public PreCheckDetails() { InitializeComponent(); } public static readonly StyledProperty PreCheckNameProperty = AvaloniaProperty.Register(nameof(PreCheckName)); public string PreCheckName { get => GetValue(PreCheckNameProperty); set => SetValue(PreCheckNameProperty, value); } public static readonly StyledProperty DetailsProperty = AvaloniaProperty.Register(nameof(Details)); public string Details { get => GetValue(DetailsProperty); set => SetValue(DetailsProperty, value); } public static readonly StyledProperty ActionButtonTextProperty = AvaloniaProperty.Register(nameof(ActionButtonText)); public string ActionButtonText { get => GetValue(ActionButtonTextProperty); set => SetValue(ActionButtonTextProperty, value); } public static readonly StyledProperty ActionCommandProperty = AvaloniaProperty.Register(nameof(ActionCommand)); public ICommand ActionCommand { get => GetValue(ActionCommandProperty); set => SetValue(ActionCommandProperty, value); } public static readonly StyledProperty ShowActionProperty = AvaloniaProperty.Register(nameof(ShowAction)); public bool ShowAction { get => GetValue(ShowActionProperty); set => SetValue(ShowActionProperty, value); } public static readonly StyledProperty BarColorProperty = AvaloniaProperty.Register(nameof(BarColor)); public string BarColor { get => GetValue(BarColorProperty); set => SetValue(BarColorProperty, value); } }