摘要: 在WP7开发中,经常需要在不同的页面切换,所以也会经常遇到数据在不同页面之间的传递问题,下面介绍几种数据传递的方法 1、页面之间传递数据(字符串) 通过页面导航的Uri地址进行传递,导航到 Page2.xaml 页面 string uriString = "/page2.xaml?parameter1=value1&parameter2=value2"; Uri uri = new Uri(uriString, UriKind.Relative); this.NavigationService.Navigate(uri); 字符串参数接在... 阅读全文
posted @ 2012-11-05 19:22 bomo 阅读(375) 评论(0) 推荐(0) 编辑