Intersoft ClientUI Documentation
MappedUri Property (UriMapping)
Example 



Gets or sets the uniform resource identifier (URI) that is navigated to instead of the originally requested URI.
Syntax
Public Property MappedUri As Uri
Dim instance As UriMapping
Dim value As Uri
 
instance.MappedUri = value
 
value = instance.MappedUri
public Uri MappedUri {get; set;}
public:
property Uri^ MappedUri {
   Uri^ get();
   void set (    Uri^ value);
}
Remarks

When a requested URI matches the pattern you specify in the Uri property, the ClientUI 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.

For more information, see Navigation Overview.

Example
The following example shows an instance of UriMapper that is defined within a UXFrame named ContentFrame. The element contains a collection of UriMapping objects.
<Intersoft:UXFrame x:Name="ContentFrame">
        <Intersoft:UXFrame.UriMapper>
                <Intersoft:UriMapper>
                        <Intersoft:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                        <Intersoft:UriMapping Uri="/Error" MappedUri="/ErrorPage.xaml"/>
                        <Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/>
                </Intersoft:UriMapper>
        </Intersoft:UXFrame.UriMapper>
</Intersoft:UXFrame>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UriMapping Class
UriMapping Members
Navigation Overview

Send Feedback