Windows phone 7中UriMapper相关
关于Windows phone 7中导航的相关内容,可以参考下面的文章:
- 导航概述
- WP7 Navigation in depth | Navigation Framework E文
- WP7 Navigation in depth | Navigation controls E文
记录一点问题
在需要传递多个参数的时候,比如:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 <navigation:UriMapping Uri="NavigateToPage/{param1}/{param2}/{param3}" MappedUri="/Views/NavigateToPage.xaml?repost={param1}&user={param2}&text={param3}" />
2 <navigation:UriMapping Uri="NavigateToPage/{param1}/{param2}" MappedUri="/Views/NavigateToPage.xaml?reply={param1}&user={param2}" />
3 <navigation:UriMapping Uri="NavigateToPage/{param3}" MappedUri="/Views/NavigateToPage.xaml?text={param3}" />
4 <navigation:UriMapping Uri="NavigateToPage" MappedUri="/Views/NavigateToPage.xaml" />
如上,请注意各个Uri的顺序,将参数多的映射放在前面。
说得简单,只做记录。