Toast
--------------------------------------------------------------
var t = Windows.UI.Notifications.ToastTemplateType.ToastText02;
//在模板添加xml要的标题
var content = Windows.UI.Notifications.ToastNotificationManager.GetTemplateContent(t);
//需要using Windows.Data.Xml.Dom;
XmlNodeList xml = content.GetElementsByTagName("text");
xml[0].AppendChild(content.CreateTextNode("通知"));
xml[1].AppendChild(content.CreateTextNode("小文本"));
//需要using Windows.UI.Notifications;
Windows.UI.Notifications.ToastNotification toast = new ToastNotification(content);
ToastNotificationManager.CreateToastNotifier().Show(toast);
标签:toast,xml,Windows,吐司,uwp,ToastNotificationManager,content,Notifications,UI
From: https://blog.51cto.com/u_4018548/6419762