Navigation Using Unmapped URIs
There are numerous ways of allowing the user to perform page navigation. This section looks at using Buttons
with code-beside to open external URLs, and at HyperlinkButtons
, which can rely solely on XAML. In subsequent chapters you explore other techniques to perform navigation including the use of commands and a custom navigation service.
Internal URIs
When navigating to PhoneApplicationPages
within an application, URIs either must be relative to the root directory of the project and use the relative path syntax, as shown in the following excerpt:
Uri uri = new Uri("/DirectoryName/PageName.xaml", UriKind.Relative);
or they must use the relative component URI format, such as that used in the following example: ...
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.