developers.de
daenet's .NET Community

Windows Phone URI-mapping

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

Windows Phone provides an UriMapper object. That object defines a mapping that will be used through the entire application for all navigation process. URI mapping are used to “hide” real navigation structure and provide query string parameters to the pages.

Following picture shows a sample mapping process. When user press “P2/123” it will be navigated to relative address “/P2/123” which is a fake address. That fake address is mapped by “/P2/{number}” to “/Page2.xaml?id={number}”.

image

When you are in the page use NavigationContext to get query arguments.


Posted Sep 02 2010, 12:02 AM by Damir Dobric
Filed under:

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
daenet GmbH