嗨。我在第一頁上的代碼:使用查詢字符串來獲取參數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