2023-08-22 10:21:52 -04:00
|
|
|
|
using Avalonia;
|
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
|
|
|
|
|
namespace SPTInstaller.CustomControls.Dialogs;
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2023-08-22 10:21:52 -04:00
|
|
|
|
public partial class ConfirmationDialog : UserControl
|
|
|
|
|
{
|
|
|
|
|
public ConfirmationDialog(string message)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2023-08-22 10:21:52 -04:00
|
|
|
|
Message = message;
|
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2023-08-22 10:21:52 -04:00
|
|
|
|
public string Message
|
|
|
|
|
{
|
|
|
|
|
get => GetValue(MessageProperty);
|
|
|
|
|
set => SetValue(MessageProperty, value);
|
|
|
|
|
}
|
2024-05-01 10:31:55 -04:00
|
|
|
|
|
2023-08-22 10:21:52 -04:00
|
|
|
|
public static readonly StyledProperty<string> MessageProperty =
|
|
|
|
|
AvaloniaProperty.Register<ConfirmationDialog, string>(nameof(Message));
|
2024-05-01 10:31:55 -04:00
|
|
|
|
}
|