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






Represents a tab item that consists of tab header and tab page.

Object Model

UXTabItem Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a tab item that consists of a header and a content.")>
Public Class UXTabItem 
   Inherits Intersoft.Client.Framework.ISHeaderedSelectionItemControl
   Implements IControlIFramework, ILicensing, IKeyboardFocusISelectionItem 
Visual Basic (Usage)Copy Code
Dim instance As UXTabItem
C# 
[DescriptionAttribute("Represents a tab item that consists of a header and a content.")]
public class UXTabItem : Intersoft.Client.Framework.ISHeaderedSelectionItemControl, IControlIFramework, ILicensing, IKeyboardFocusISelectionItem  
JScript 
DescriptionAttribute("Represents a tab item that consists of a header and a content.")
public class UXTabItem extends Intersoft.Client.Framework.ISHeaderedSelectionItemControl implements IControlIFramework, ILicensing, IKeyboardFocusISelectionItem 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a tab item that consists of a header and a content.")]
public __gc class UXTabItem : public Intersoft.Client.Framework.ISHeaderedSelectionItemControl, IControlIFramework, ILicensing, IKeyboardFocusISelectionItem  
C++/CLI 
[DescriptionAttribute("Represents a tab item that consists of a header and a content.")]
public ref class UXTabItem : public Intersoft.Client.Framework.ISHeaderedSelectionItemControl, IControlIFramework, ILicensing, IKeyboardFocusISelectionItem  

Remarks

The item container type of UXTabControl is UXTabItem, which derives from ISHeaderedSelectionItemControl class. This means that UXTabItem is designed to host two major content elements: a header and a content. UXTabItem also supports selection architecture for automatic synchronization with UXTabControl. To learn more about content model architecture in ClientUI controls, see Content Model Overview.

In addition, UXTabItem also supports ImageContent model, allowing you to easily add an image in the tab header, configure the image size, as well as customizing the text and image relation. UXTabItem provides the following properties to support ImageContent model:

The following example shows how to add an icon to the header of the tab pages for more compelling user interface.

XAML Copy Code
<Intersoft:UXTabControl Width="400" Height="200">
    <Intersoft:UXTabItem Header="Address">
        <Grid>
            <TextBlock Text="Address Content" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Grid>
    </Intersoft:UXTabItem>
    <Intersoft:UXTabItem Header="Contact History">
        <Grid>
            <TextBlock Text="Contact History Content" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Grid>
    </Intersoft:UXTabItem>
    <Intersoft:UXTabItem Header="Sales Information">
        <Grid>
            <TextBlock Text="Sales Information Content" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Grid>
    </Intersoft:UXTabItem>
</Intersoft:UXTabControl>

The results look like the following illustration.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.Framework.ISHeaderedContentControl
                        Intersoft.Client.Framework.ISHeaderedSelectionItemControl
                           Intersoft.Client.UI.Navigation.UXTabItem

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.