Navigation Using the NavigationService

The PhoneApplicationPage class exposes a public NavigationService property, which allows direct control over navigation.

Note

The NavigationService cannot be used to launch Internet Explorer to view an external URL. Instead, use either the WebBrowserTask, or open the page within the app using the WebBrowserControl. See the previous sections on external navigation using the Button and HyperlinkButton controls.

The NavigationService.Navigate method causes the frame to load the specified PhoneApplicationPage, like so:

NavigationService.Navigate(    new Uri("/DirectoryName/PageName.xaml", UriKind.Relative));

The URI must be either a path relative to the project’s root directory, ...

Get Windows® Phone 8 Unleashed 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.