using Avalonia; using Avalonia.Controls; namespace SPTInstaller.CustomControls; public partial class TaskDetails : UserControl { public TaskDetails() { InitializeComponent(); } public string Message { get => GetValue(MessageProperty); set => SetValue(MessageProperty, value); } public static readonly StyledProperty MessageProperty = AvaloniaProperty.Register(nameof(Message)); public string Details { get => GetValue(DetailsProperty); set => SetValue(DetailsProperty, value); } public static readonly StyledProperty DetailsProperty = AvaloniaProperty.Register(nameof(Details)); public int Progress { get => GetValue(ProgressProperty); set => SetValue(ProgressProperty, value); } public static readonly StyledProperty ProgressProperty = AvaloniaProperty.Register(nameof(Progress)); public bool ShowProgress { get => GetValue(ShowProgressProperty); set => SetValue(ShowProgressProperty, value); } public static readonly StyledProperty ShowProgressProperty = AvaloniaProperty.Register(nameof(ShowProgress)); public bool IndeterminateProgress { get => GetValue(IndeterminateProgressProperty); set => SetValue(IndeterminateProgressProperty, value); } public static readonly StyledProperty IndeterminateProgressProperty = AvaloniaProperty.Register(nameof(IndeterminateProgress)); }