zoukankan      html  css  js  c++  java
  • uwp 之吐司 toast

    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);

  • 相关阅读:
    vgcreate语法
    lsmod语法
    lvm语法2
    lvm语法
    mount语法
    fdisk语法
    mdadm语法
    ln语法
    mknod语法
    黑客常用dos-cmd命令
  • 原文地址:https://www.cnblogs.com/bruce1992/p/14220972.html
Copyright © 2011-2022 走看看