Example #1
0
        public void ShowNotification(string title, string message, NotificationType type = NotificationType.Information, TimeSpan?expiration = null, Action onClick = null, Action onClose = null)
        {
            //if (dialogs.Count > 0)
            //{
            //    var last_dialog = dialogs.Last();

            //    var notificationManager = new WindowNotificationManager(last_dialog)
            //    {
            //        Position = NotificationPosition.TopRight,
            //        MaxItems = 3
            //    };

            //    notificationManager.Show(new Notification(title, message, type, expiration, onClick, onClose));
            //}
            //else
            notificationManager.Show(new Notification(title, message, type, expiration, onClick, onClose));
        }
Example #2
0
 public static void Show(object viewModel)
 {
     NotificationManager?.Show(viewModel);
 }