Windows Phone Toast通知

try
            {
                string msg = this.richTextBox1.Text;
                string title = "新通知";
                string toastMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                    "<wp:Notification xmlns:wp=\"WPNotification\">" +
                       "<wp:Toast>" +
                            "<wp:Text1>" + title + "</wp:Text1>" +
                            "<wp:Text2>" + this.textBox1.Text + "</wp:Text2>" +
                            "<wp:Param>/Views/MainPage.xaml?NavigatedFrom=ToastNotification" + Uri.EscapeDataString("&title=" + title + "&msg=" + msg) + "</wp:Param>" +
                       "</wp:Toast> " +
                    "</wp:Notification>";
                byte[] strBytes = new UTF8Encoding().GetBytes(toastMessage);

                MsgLabel.Text = "发送中。。。";
                SendToastNotification(strBytes);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

 

Windows Phone Toast通知,布布扣,bubuko.com

Windows Phone Toast通知

上一篇:Ubuntu和win双系统删除ubuntu开机出错


下一篇:使用navicat连接ORACLEO出现错误 : RA-12514: TNS:监听程序当前无法识别连接描述符中请求的服务