const string CurrentEntryDateKey = "CurrentEntryDateKey"; //If we return to this page after Tomstoning, then get the previous state from // PhoneApplicationService if (PhoneApplicationService.Current.State.ContainsKey(CurrentEntryDateKey)) _entryDate = (DateTime)PhoneApplicationService.Current.State[CurrentEntryDateKey];
在xaml中导航使用&时需要用转义字符,& 如:<HyperlinkButton NavigateUri="/ChildPage/Video.xaml?param1=视频&param2=参数2">
而在后台则不用
NavigationService.Navigate(new Uri("/ChildPage/Music.xaml?"+ "param1=" + TextBox1.Text + "¶m2=" + TextBox2.Text , UriKind.Relative));