在Windows Phone 7的Silverlight应用程序调用我使用WP7:将参数传递到新页面?
NavigationService.Navigate(new Uri("/View/SecondPage.xaml", UriKind.Relative));
现在我想参数传递给新的一页新的一页。我明白了一个简单的参数,可以使用通过:
NavigationService.Navigate(new Uri("/View/TilgungsratePage.xaml?id=4711", UriKind.Relative));
,并在使用
protected override void OnNavigatedTo(Microsoft.Phone.Navigation.PhoneNavigationEventArgs e)
{
base.OnNavigatedTo(e);
String id = NavigationContext.QueryString["id"];
}
对于简单的参数,这是确定新的页面读取,但我怎么通过一个列表?
复杂的物体?
除了简单的值之外什么都没有?
看看这篇文章,以及: WP7 Master - 具有存储库模式的详细信息导航](http://windowsphonegeek.com/articles/WP7-Master---Detail-Navigation-with-Repository-Pattern) – 2012-06-13 15:12:29
查看此链接的最后一个方法:http:// www.c-sharpcorner.com/UploadFile/deepak.sharma00/different-ways-of-passing-values-between-windo ws-phone-7-pag/ – 2012-09-16 05:36:54
看看这个问题http://stackoverflow.com/questions/12444816/how-to-pass-values-parameters-between-xaml-pages – 2013-05-13 23:43:33