NotificationWindow notify = new NotificationWindow();
NotifyWindow win = new NotifyWindow();
win.Header.Text = "Custom Message Header";
win.Description.Text = "This is a custom description.";
notify.Width = win.Width;
notify.Height = win.Height;
notify.Content = win;
notify.Show(5000);
When this program have been execute 3 times,[NotificationWindow only one is visible at a time]Error is appear by notify.Show(5000).how do I solve this problem??
You need to maintain a queue of notifications so that each notification appears after another. To do that you’ll need manage such a queue with your own code.
Here is such a notification queue manager I’ve knocked up.
You can adjust your code to:-
If you call such code repeatedly you will just get multiple notifications (although it might be hard to tell if the text doesn’t change).