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