/// <summary>
        /// 发送通知
        /// </summary>
        protected static void ShowToast(XmlDocument xml)
        {
            ToastNotification toast = new ToastNotification(xml);

            DesktopNotificationManagerCompat.CreateToastNotifier().Show(toast);
        }
 public void Init <T>(string appid) where T : NotificationActivator
 {
     // Console.WriteLine("Init" + Thread.CurrentThread.ManagedThreadId);
     DesktopNotificationManagerCompat.RegisterAumidAndComServer <T>(appid);
     DesktopNotificationManagerCompat.RegisterActivator <T>();
 }