Beispiel #1
0
 public void Init(string appid)
 {
     DesktopNotificationManagerCompat.RegisterAumidAndComServer <NotificationService>(appid);
     DesktopNotificationManagerCompat.RegisterActivator <NotificationService>();
 }
Beispiel #2
0
        /// <summary>
        /// 发送通知
        /// </summary>
        private void ShowToast(XmlDocument xml)
        {
            ToastNotification toast = new ToastNotification(xml);

            DesktopNotificationManagerCompat.CreateToastNotifier().Show(toast);
        }