2015-09-28 33 views

回答

0

"<toast launch=\"/text to receive\">" + "<visual>" + 
" <binding template=\"ToastText02\">" + "<text id=\"1\">" + 
Headertext +"</text>" + " <text id=\"2\">"+Message+"</text>" + 
" </binding>" + " </visual>" + "</toast>" 

感謝你必須根據你想發送的內容不同的模板。 這裏有模板的一些例子,你可以使用:https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.toasttemplatetype

在這個頁面,你可以看到你應該對那些模板中的每一個使用XAML代碼:http://www.getcodesamples.com/src/149C1734/36315A36

0

更改綁定標籤中的文字<binding template="ToastImageAndText02"><image id="1" src=""/><text id="1"></text><text id="2"></text></binding>

+0

它不適合我。 –

+0

我的吐司消息是:string PushNotificationXML1 =「」+「」+「」+「」+「」+ Headertext +「」+「」Message +「」 +「」+「」+「」; –

+0

https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.toasttemplatetype閱讀備註 –

相關問題