using Avalonia; using Avalonia.Controls; using Avalonia.Media; namespace SPTInstaller.CustomControls { public partial class ProgressableTaskItem : UserControl { public ProgressableTaskItem() { InitializeComponent(); } public string TaskId { get => GetValue(TaskIdProperty); set => SetValue(TaskIdProperty, value); } public static readonly StyledProperty TaskIdProperty = AvaloniaProperty.Register(nameof(TaskId)); public string TaskName { get => GetValue(TaskNameProperty); set => SetValue(TaskNameProperty, value); } public static readonly StyledProperty TaskNameProperty = AvaloniaProperty.Register(nameof(TaskName)); public bool IsCompleted { get => GetValue(IsCompletedProperty); set => SetValue(IsCompletedProperty, value); } public static readonly StyledProperty IsCompletedProperty = AvaloniaProperty.Register(nameof(IsCompleted)); public bool IsRunning { get => GetValue(IsRunningProperty); set => SetValue(IsRunningProperty, value); } public static readonly StyledProperty IsRunningProperty = AvaloniaProperty.Register(nameof(IsRunning)); public IBrush PendingColor { get => GetValue(PendingColorProperty); set => SetValue(PendingColorProperty, value); } public static readonly StyledProperty PendingColorProperty = AvaloniaProperty.Register(nameof(PendingColor)); public IBrush RunningColor { get => GetValue(RunningColorProperty); set => SetValue(RunningColorProperty, value); } public static readonly StyledProperty RunningColorProperty = AvaloniaProperty.Register(nameof(PendingColor)); public IBrush CompletedColor { get => GetValue(CompletedColorProperty); set => SetValue(CompletedColorProperty, value); } public static readonly StyledProperty CompletedColorProperty = AvaloniaProperty.Register(nameof(PendingColor)); } }