我可以使用发送和接收单个参数
string toastMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<wp:Notification xmlns:wp=\"WPNotification\">" +
"<wp:Toast>" +
"<wp:Text1>" + TextBoxTitle.Text.ToString() + "</wp:Text1>" +
"<wp:Text2>" + TextBoxSubTitle.Text.ToString() + "</wp:Text2>" +
"<wp:Param>/Evento.xaml?eid=3709626441465918</wp:Param>" +
"</wp:Toast> " +
"</wp:Notification>";
但是,如果我尝试像这样发送多个参数:
string toastMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<wp:Notification xmlns:wp=\"WPNotification\">" +
"<wp:Toast>" +
"<wp:Text1>" + TextBoxTitle.Text.ToString() + "</wp:Text1>" +
"<wp:Text2>" + TextBoxSubTitle.Text.ToString() + "</wp:Text2>" +
"<wp:Param>/Evento.xaml?eid=3709626441465918;lat=28.5146;lng=77.1972;EventName=aa</wp:Param>" +
"</wp:Toast> " +
"</wp:Notification>";
在接收端我得到eid
自己等于
"3709626441465918;lat=28.5146;lng=77.1972;EventName=aa""3709626441465918;lat=28.5146;lng=77.1972;EventName=aa"
我试过“&”而不是“;” 和 toast 通知甚至不起作用。