MappedUri Property
Collapse the table of content
Expand the table of content

UriMapping.MappedUri Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the uniform resource identifier (URI) that is navigated to instead of the originally requested URI.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property MappedUri As Uri
<sdk:UriMapping MappedUri="uriString"/>

Property Value

Type: System.Uri
The URI that the requested URI is converted to.

When a requested URI matches the pattern you specify in the Uri property, the Windows Phone framework navigates to the URI you specify in the MappedUri property. Typically, you set the Uri property to a user-friendly value, such as Home, and you set the MappedUri property to the actual file to use for the request, such as /Views/HomePage.xaml.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft