wp7 页面导航传值和在Tombstoning之后保存状态保存状态
2013-02-07 21:31
309 查看
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=视频¶m2=参数2">
而在后台则不用
NavigationService.Navigate(new Uri("/ChildPage/Music.xaml?"+ "param1=" + TextBox1.Text + "¶m2=" + TextBox2.Text , UriKind.Relative));
相关文章推荐
- WP7中页面之间传值和保存恢复数据状态
- 奇怪的错误----在firefox中的帧页面源码中找不到, 但是保存成txt之后找得到
- WebForm —— 页面状态自动加载和保存(中)
- .Net保存页面滚动条状态
- WebForm —— 页面状态自动加载和保存(下)
- 页面状态保存
- 页面状态保存
- 页面导航【WP7学习札记之七】
- 巧用location.hash保存页面状态
- 页面无限跳转间如何保存页面状态(2)
- Activity页面状态保存 持久化
- 巧用location.hash保存页面状态
- 页面无限跳转间如何保存页面状态 (3)
- location.hash保存页面状态的技巧
- 关于浏览器回退默认行为的研究 回退保存页面状态
- WP7.页面导航
- WebForm —— 页面状态自动加载和保存(上)
- Post表单如何保存页面状态并输出源码
- JSP如何保存页面上众多的复选状态
- ng中页面刷新之后,导航条还处于选中状态