Options for Showing Toast Notifications
Although toast notifications don’t have the same kind of pull option that live tiles have, there are three ways to show one:
→ Local
→ Scheduled
→ Push
This section examines local and scheduled notifications, as push notifications are discussed in the next section.
Just like TileNotification
, ToastNotification
defines an ExpirationTime
property, although it’s not meaningful due to the short-lived nature of notifications.
Local
This is the approach that has already been shown. In addition to calling ToastNotifier
’s Show
method, you can call its Hide
method to hide the toast early, presumably due to some user action inside your app. However, local toast notifications are not the most common kind because ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.