Intersoft ClientUI Documentation
MappedUri Property
See Also  Example Send Feedback
Intersoft.Client.UI.Navigation Namespace > UriMapping Class : MappedUri Property






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

Syntax

Visual Basic (Declaration) 
Public Property MappedUri As Uri
Visual Basic (Usage)Copy Code
Dim instance As UriMapping
Dim value As Uri
 
instance.MappedUri = value
 
value = instance.MappedUri
C# 
public Uri MappedUri {get; set;}
Delphi 
public read-write property MappedUri: Uri; 
JScript 
public function get,set MappedUri : Uri
Managed Extensions for C++ 
public: __property Uri* get_MappedUri();
public: __property void set_MappedUri( 
   Uri* value
);
C++/CLI 
public:
property Uri^ MappedUri {
   Uri^ get();
   void set (    Uri^ value);
}

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.
XAMLCopy Code
<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>

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.