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






Defines the pattern for converting a requested uniform resource identifier (URI) into a new URI.

Object Model

UriMapping Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class UriMapping 
Visual Basic (Usage)Copy Code
Dim instance As UriMapping
C# 
public sealed class UriMapping 
Delphi 
public class UriMapping sealed; 
JScript 
public sealed class UriMapping 
Managed Extensions for C++ 
public __gc __sealed class UriMapping 
C++/CLI 
public ref class UriMapping sealed 

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

The UriMapping class enables you to specify that a particular URI is converted into another URI. You map one URI to another URI when you want to provide a user-friendly URI that does not map to the physical location of a file. You map a matching URI for only the portion of the URI that pertains to navigation within the frame that contains the mappings. For a browser-integrated application, this portion is found after the fragment delimiter (#). For example, if your browser-integrated Silverlight application is hosted at http://www.intersoftpt.com/Default.aspx, you specify a matching URI for http://www.intersoftpt.com/Default.aspx#Home by creating an instance of UriMapping that matches Home. Therefore, you can move your Silverlight application to a different Web page.

Inheritance Hierarchy

System.Object
   Intersoft.Client.UI.Navigation.UriMapping

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.