Intersoft ClientUI Documentation
Header Property (HeaderedItemsControl)



Gets or sets the item that labels the control.
Syntax
<CategoryAttribute("Common Properties")>
Public Property Header As Object
Dim instance As HeaderedItemsControl
Dim value As Object
 
instance.Header = value
 
value = instance.Header
[CategoryAttribute("Common Properties")]
public object Header {get; set;}
[CategoryAttribute("Common Properties")]
public:
property Object^ Header {
   Object^ get();
   void set (    Object^ value);
}

Property Value

The item that labels the control. The default value is null.
Example

The following examples shows several heading and items concept in ClientUI controls line up.

UXContextMenu
Copy Code
<Grid x:Name="Layout" Background="White" Intersoft:ContextMenuService.ContextMenuName="MyContextMenu">
        <Intersoft:UXContextMenu x:Name="MyContextMenu" HorizontalAlignment="Left" VerticalAlignment="Top">
                <Intersoft:UXMenuItem Header="View" Background="#FF767676">
                        <Intersoft:UXMenuItem Header="Large Icons"/>
                        <Intersoft:UXMenuItem Header="Medium Icons"/>
                        <Intersoft:UXMenuItem Header="Small icons"/>
                </Intersoft:UXMenuItem>
                <Intersoft:UXMenuItem Header="Sort By">
                        <Intersoft:UXMenuItem Header="Name"/>
                        <Intersoft:UXMenuItem Header="Size"/>
                </Intersoft:UXMenuItem>
                <Intersoft:UXSeparator/>
                <Intersoft:UXMenuItem Header="Refresh"/>
        </Intersoft:UXContextMenu>
</Grid>

UXAccordion
Copy Code
<Intersoft:UXAccordion HorizontalAlignment="Center" Height="200" VerticalAlignment="Center" Width="150">
        <Intersoft:UXAccordionItem Header="Co-workers">
                <Intersoft:UXAccordionOption Content="Alex"/>
                <Intersoft:UXAccordionOption Content="Vyna"/>
                <Intersoft:UXAccordionOption Content="Greg"/>
                <Intersoft:UXAccordionOption Content="Silvia"/>
        </Intersoft:UXAccordionItem>
        <Intersoft:UXAccordionItem Header="Family"/>
</Intersoft:UXAccordion>

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

HeaderedItemsControl Class
HeaderedItemsControl Members

Concepts

Items Control Overview
Content Model Overview

Send Feedback