コード例 #1
0
        private void BreakingNews_Click(object sender, RoutedEventArgs e)
        {
            var toastXML = ToastService.CreateToast();
            var notifier = ToastNotificationManager.CreateToastNotifier();
            var toast    = new ToastNotification(toastXML);

            notifier.Show(toast);
        }
コード例 #2
0
        private void Notify(object sender, RoutedEventArgs e)
        {
            XmlDocument       xmlDoc   = ToastService.CreateToast();
            ToastNotifier     notifier = ToastNotificationManager.CreateToastNotifier();
            ToastNotification toast    = new ToastNotification(xmlDoc);

            notifier.Show(toast);
        }
コード例 #3
0
ファイル: MainPage.xaml.cs プロジェクト: hiro0218/HelloUWP
        private void templateNotify()
        {
            var xmlDoc   = ToastService.CreateToast();
            var notifier = ToastNotificationManager.CreateToastNotifier();
            var toast    = new ToastNotification(xmlDoc);

            notifier.Show(toast);
        }