嗨。我在第一页上的代码:使用查询字符串来获取参数c#windows phone 7
NavigationService.Navigate(new Uri("/Game/animais/A1.xaml?anim=cabra",UriKind.Relative));
而其他的网页我有这样的:
String anim = null;
anim = this.NavigationContext.QueryString["anim"];
问题是,当它得到这个代码我得到这个错误:
anim = this.NavigationContext.QueryString["anim"]; - nullreferenceexception was unhandled
我不知道什么是错的:■
没有工作,得到了同样的错误,NullReferenceException异常是未处理 – dragonfoca