Windows Phone URI-mapping

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

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:
developers.de is a .Net Community Blog powered by daenet GmbH.