-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
So I tried a few things, but no luck.
By RemoteID, I mean, Universal Dismiss. I didn't find any DOC also, just the MSDN article talking about it.
Any help would be appreciated.
Where I want to implement it:
foreach(Tuple<string, string, string> newNote in newNotifications)
{
// Make the visual
ToastVisual visual = new ToastVisual();
visual.TitleText = new ToastText() { Text = newNote.Item1 };
if(!String.IsNullOrWhiteSpace(newNote.Item2))
{
visual.BodyTextLine1 = new ToastText() { Text = newNote.Item2 };
}
// Make the toast content
ToastContent toastContent = new ToastContent();
toastContent.Visual = visual;
toastContent.Launch = c_messageInboxOpenArgument;
toastContent.ActivationType = ToastActivationType.Foreground;
toastContent.Duration = ToastDuration.Short;
var toast = new ToastNotification(toastContent.GetXml());
toast.Tag = newNote.Item3;
// Only show if we should and this is the first message to show.
toast.SuppressPopup = hasShownNote || updateSliently || AddToNotificationCenterSilently;
ToastNotificationManager.CreateToastNotifier().Show(toast);
// Mark that we have shown one.
hasShownNote = true;
}
full code to better understanding: https://github.com/vitorgrs/Reddunt/blob/rd_develop_rs1/BaconBackend/Managers/Background/BackgroundMessageUpdater.cs
PS: Not getting markdown insert code working. Sorry.