UWP - Frame Navigate only crashes when passing a parameter

吃可爱长大的小学妹 提交于 2019-12-06 13:38:07

Questioner was using Template10 (go to know about it during chat) so following is the final and updated answer for implementing Navigation.

For Template10:

way-1

using Template10.Services.SerializationService; 
... 
string id = (string)(sender as StackPanel).Tag; 
string str=SerializationService.Json.Serialize(id); 
Frame.Navigate(typeof(MovieDetailPage), str);

Way-2

var NavService = NavigationService.GetForFrame(this.Frame); 
NavService.Navigate(typeof(MovieDetailPage), id);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!