NotificationManager?.Show(newNotificationViewModel(){Title="Hey There!",Message="Did you know that Avalonia now supports Custom In-Window Notifications?",NotificationManager=NotificationManager});
NotificationManager?.Show(newNotificationViewModel(){Title="Hey There!",Message="Did you know that Avalonia now supports Custom In-Window Notifications?",NotificationManager=NotificationManager},NotificationType.Warning);
NotificationManager?.Show(newAvalonia.Controls.Notifications.Notification("Welcome","Avalonia now supports Notifications.",NotificationType.Information));
NotificationManager?.Show(newAvalonia.Controls.Notifications.Notification("Error","Native Notifications are not quite ready. Coming soon.",NotificationType.Error));
});
YesCommand=MiniCommand.Create(()=>
{
NotificationManager?.Show(newAvalonia.Controls.Notifications.Notification("Avalonia Notifications","Start adding notifications to your app today."));
/// <param name="content">the content of the notification</param>
/// <param name="type">the type of the notification</param>
/// <param name="expiration">the expiration time of the notification after which it will automatically close. If the value is Zero then the notification will remain open until the user closes it</param>
/// <param name="onClick">an Action to be run when the notification is clicked</param>
/// <param name="onClose">an Action to be run when the notification is closed</param>
/// <param name="classes">style classes to apply</param>