diff --git a/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml b/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml index ee505a14d..15c0d4a1b 100644 --- a/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml +++ b/SukiUI.Demo/Features/ControlsLibrary/MiscView.axaml @@ -125,6 +125,13 @@ Command="{Binding OpenBoxCommand}" Content="Open MessageBox" /> + @@ -68,13 +68,12 @@ - + Margin="22,0,0,0" Background="{DynamicResource SukiCardBackground}" Width="35" Height="35" CornerRadius="35" VerticalAlignment="Center" HorizontalAlignment="Left"> + - - - + diff --git a/SukiUI/Models/MessageBoxModel.cs b/SukiUI/Models/MessageBoxModel.cs new file mode 100644 index 000000000..e338ae4a2 --- /dev/null +++ b/SukiUI/Models/MessageBoxModel.cs @@ -0,0 +1,17 @@ +using System; +using SukiUI.Enums; + +namespace SukiUI.Models +{ + public readonly record struct MessageBoxModel(string Title, object Content, ToastType Type = ToastType.Info, string? ActionButtonContent = null,Action? ActionButton= null) + { + public string Title { get; } = Title; + public object Content { get; } = Content; + public ToastType Type { get; } = Type; + + + + public string? ActionButtonContent { get; } = ActionButtonContent; + public Action? OnActionButtonClicked { get; } = ActionButton; + } +} \ No newline at end of file