Enabling Friendly URIs with URI Mapping
As discussed earlier in this chapter, it's possible to set up a mapping scheme to automatically transform the URI that has been navigated to (visible to the user in the browser's address bar) into a form that the navigation framework can act on, which typically contains the path to the view to navigate to and any query string parameters to pass to it. For example, the mapping could transform the following URI
ProductDetails/879
to its actual representation internally:
/Views/ProductDetailsView.xaml?ProductID=879
The feature of the navigation framework that makes this automatic transformation possible is the URI mapper, which is assigned to the Frame control's UriMapper
property. When a navigation operation ...
Get Pro Business Applications with Silverlight 5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.