Toast Notification parameters in Windows Phone 8.1 Silverlight

前端 未结 1 2169
野的像风
野的像风 2021-02-20 08:20

Okay so I\'m using the new ToastNotificationManager in my 8.1 SL project instead of the old ShellToast. The ShellToast had NavigationUri on the toast message which made it reall

相关标签:
1条回答
  • 2021-02-20 08:35

    Your problem is you're setting the wrong launch parameter. You should set it directly to the page you want to navigate to.

    var toastNavigationUriString = ""#/MainPage.xaml?param1=12345";
    var toastElement = ((XmlElement)toastXml.SelectSingleNode("/toast"));
    toastElement.SetAttribute("launch", toastNavigationUriString);
    
    0 讨论(0)
提交回复
热议问题