Over a million developers have joined DZone.

Silverlight Navigation Framework XAML Escape Sequence

DZone's Guide to

Silverlight Navigation Framework XAML Escape Sequence

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

The XAML escape sequence and the navigation framework for Silverlight 4 and Silverlight 5 is discussed in a quick and useful tutorial by Alex van Beek.  He discusses a common scenario when using the navigation framework:

When you use the navigation framework in Silverlight, you probably also want to use an UriMapper, to shield your users from the complete path of the XAML files and the .xaml extension. Such an UriMapper could look something like this:

<uriMapper:UriMapping Uri="Home" MappedUri="/Views/Home.xaml"/>

<uriMapper:UriMapping Uri="About" MappedUri="/Views/About.xaml"/>

A small bug in the navigation framework activates the browser’s back button when the user navigates to your Silverlight application for the very first time. This isn’t that bad, except for the exception when the user actually presses the back button.  -- Alex van Beek

van Beek then goes on to show how he changes the UriMapper.  Go see if the tutorial gives you some useful insights.

Source: http://blogs.infosupport.com/silverlight-navigation-framework-tip-using-the-xaml-escape-sequence/

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}