
It works, the toast will automatically disappear after 10 seconds, but in some case, your toast will never be popped. The classic, but wrong, solutionĪ very common solution we find on internet is to use ToastNotification.ExpirationTime and assign the current time + 10 seconds. There is an API add toasts to the action center without popping them ( ToastNotification.SuppressPopup), but the contrary doesn’t exist, we will need to find a workaround. Do we have an API to prevent toasts to be added to the action center? But it doesn’t make sense to keep some toasts more than 20 seconds, for example “the password you entered is wrong”, “Your message has been sent”, etc… I named this type of toasts “action feedback toasts”, their only purpose is to show a UI feedback following the result of an action you did: click on the send button, check a radio button, etc… Those toasts are only interesting in the very short term, they should not even added to the action center in my opinion. It can make sense to keep visible some toasts during days there, for example: “Sabrina sent you a message”, is the kind of toast you don’t want to miss and still valid even after 2-3 days. One of the current restriction of UWP is that we don’t have a simple way to display toast notifications without adding them to the action center.
