Intersoft ClientUI Documentation
UriMapper Property
See Also  Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXTabControl Class : UriMapper Property






Gets or sets the UriMapper object to provide URI mapping capability.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property UriMapper As UriMapperBase
Visual Basic (Usage)Copy Code
Dim instance As UXTabControl
Dim value As UriMapperBase
 
instance.UriMapper = value
 
value = instance.UriMapper
C# 
[CategoryAttribute("Common Properties")]
public UriMapperBase UriMapper {get; set;}
Delphi 
public read-write property UriMapper: UriMapperBase; 
JScript 
CategoryAttribute("Common Properties")
public function get,set UriMapper : UriMapperBase
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property UriMapperBase* get_UriMapper();
public: __property void set_UriMapper( 
   UriMapperBase* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property UriMapperBase^ UriMapper {
   UriMapperBase^ get();
   void set (    UriMapperBase^ value);
}

Remarks

UXTabControl is built upon ClientUI Navigation Framework, allowing you to take advantage many of the advanced navigation features available in the framework such as user-friendly URI mapping, loading pages on demand from external XAP , built-in error pages, shell integration, and much more. For more information about these features and the basics of navigation, see ClientUI Navigation Overview.

The following example shows how to use UriMapper in UXTabControl to provide user-friendly URL for the item's content source.

XAML Copy Code
<Intersoft:UXTabControl Width="400" Height="300">

    <Intersoft:UXTabControl.UriMapper>
        <Intersoft:UriMapper>
            <Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/>
        </Intersoft:UriMapper>
    </Intersoft:UXTabControl.UriMapper>

    <Intersoft:UXTabItem Header="Personal Information"
                         Source="/PersonalInfo" 
                         HeaderDisplayMode="ContentAndImage"
                         HeaderImage="/Assets/Info.png"/>

    <Intersoft:UXTabItem Header="Contact History"
                         Source="/ContactHistory" 
                         HeaderDisplayMode="ContentAndImage"
                         HeaderImage="/Assets/History.png"/>

</Intersoft:UXTabControl>

Note that when you define UriMapper in the tab control, you are required to define the default UriMapping which takes a blank Uri and assign its MappedUri property to an empty page. 

A UXTabControl can have tab items with different content source configuration, for instances, the Personal Information tab loads its content from an external XAML while the Settings tab uses inline XAML content. This allows you to flexibly design your content based on the business requirements.

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.