Intersoft ClientUI Documentation
UriMapper Property (UXTabControl)



Gets or sets the UriMapper object to provide URI mapping capability.
Syntax
<CategoryAttribute("Common Properties")>
Public Property UriMapper As UriMapperBase
Dim instance As UXTabControl
Dim value As UriMapperBase
 
instance.UriMapper = value
 
value = instance.UriMapper
[CategoryAttribute("Common Properties")]
public UriMapperBase UriMapper {get; set;}
[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 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

UXTabControl Class
UXTabControl Members

Send Feedback