feat: add ShowIcon property.
This commit is contained in:
@@ -10,8 +10,8 @@ public partial class ToastDemoViewModel : ObservableObject
|
||||
{
|
||||
public WindowToastManager? ToastManager { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _showClose = true;
|
||||
[ObservableProperty] private bool _showIcon = true;
|
||||
[ObservableProperty] private bool _showClose = true;
|
||||
|
||||
[RelayCommand]
|
||||
public void ShowNormal(object obj)
|
||||
@@ -21,6 +21,7 @@ public partial class ToastDemoViewModel : ObservableObject
|
||||
Enum.TryParse<NotificationType>(s, out var notificationType);
|
||||
ToastManager?.Show(
|
||||
new Toast("This is message"),
|
||||
showIcon: ShowIcon,
|
||||
showClose: ShowClose,
|
||||
type: notificationType);
|
||||
}
|
||||
@@ -40,6 +41,7 @@ public partial class ToastDemoViewModel : ObservableObject
|
||||
Enum.TryParse<NotificationType>(s, out var notificationType);
|
||||
ToastManager?.Show(
|
||||
new Toast("This is message"),
|
||||
showIcon: ShowIcon,
|
||||
showClose: ShowClose,
|
||||
type: notificationType,
|
||||
classes: ["Light"]);
|
||||
|
||||
Reference in New Issue
Block a user