2023-05-11 23:11:39 -04:00
|
|
|
using Avalonia;
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
namespace SPTInstaller.CustomControls;
|
|
|
|
|
|
|
|
public partial class TaskDetails : UserControl
|
2023-05-11 23:11:39 -04:00
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
public TaskDetails()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public string Message
|
2023-05-11 23:11:39 -04:00
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
get => GetValue(MessageProperty);
|
|
|
|
set => SetValue(MessageProperty, value);
|
2023-05-11 23:11:39 -04:00
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public static readonly StyledProperty<string> MessageProperty =
|
|
|
|
AvaloniaProperty.Register<TaskDetails, string>(nameof(Message));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public string Details
|
|
|
|
{
|
|
|
|
get => GetValue(DetailsProperty);
|
|
|
|
set => SetValue(DetailsProperty, value);
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public static readonly StyledProperty<string> DetailsProperty =
|
|
|
|
AvaloniaProperty.Register<TaskDetails, string>(nameof(Details));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public int Progress
|
|
|
|
{
|
|
|
|
get => GetValue(ProgressProperty);
|
|
|
|
set => SetValue(ProgressProperty, value);
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public static readonly StyledProperty<int> ProgressProperty =
|
|
|
|
AvaloniaProperty.Register<TaskDetails, int>(nameof(Progress));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public bool ShowProgress
|
|
|
|
{
|
|
|
|
get => GetValue(ShowProgressProperty);
|
|
|
|
set => SetValue(ShowProgressProperty, value);
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public static readonly StyledProperty<bool> ShowProgressProperty =
|
|
|
|
AvaloniaProperty.Register<TaskDetails, bool>(nameof(ShowProgress));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public bool IndeterminateProgress
|
|
|
|
{
|
|
|
|
get => GetValue(IndeterminateProgressProperty);
|
|
|
|
set => SetValue(IndeterminateProgressProperty, value);
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
public static readonly StyledProperty<bool> IndeterminateProgressProperty =
|
|
|
|
AvaloniaProperty.Register<TaskDetails, bool>(nameof(IndeterminateProgress));
|
|
|
|
}
|