Intersoft ClientUI Documentation
Header Property
See Also  Send Feedback
Intersoft.Client.Framework Namespace > ISHeaderedContentControl Class : Header Property






Gets or sets the content for the header of the control.

Syntax

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

Property Value

The content for the header of the control. The default value is null.

Example

The following examples show several heading concept in ClientUI controls.

Group Box Copy Code
 <Intersoft:GroupBox Header="Contact Info">
    <StackPanel Background="#FFE2B22F">
        <Intersoft:FieldLabel Header="First Name :" HeaderWidth="80" HorizontalHeaderAlignment="Right">
            <Intersoft:UXTextBox Width="100"/>
        </Intersoft:FieldLabel>
        <Intersoft:FieldLabel Header="Last Name :" HeaderWidth="80" HorizontalHeaderAlignment="Right">
            <Intersoft:UXTextBox Width="100"/>
        </Intersoft:FieldLabel>
        <Intersoft:FieldLabel Header="Email :" HeaderWidth="80" HorizontalHeaderAlignment="Right">
            <Intersoft:UXTextBox Width="100"/>
        </Intersoft:FieldLabel>
        <Intersoft:FieldLabel Header="Phone :" HeaderWidth="80" HorizontalHeaderAlignment="Right">
            <Intersoft:UXTextBox Width="100"/>
        </Intersoft:FieldLabel>
    </StackPanel>
</Intersoft:GroupBox>

Field Label Copy Code
<Intersoft:FieldLabel Header="First Name :" HeaderWidth="80" HeaderForeground="Red">
    <Intersoft:UXTextBox Width="100" Background="White"/>
</Intersoft:FieldLabel>

UXCallOut Copy Code
<Intersoft:UXCallOut>
    <Intersoft:UXCallOut.Header>
        <Intersoft:GlassButton Content="Next Picture"></Intersoft:GlassButton>
    </Intersoft:UXCallOut.Header>
    <Grid Height="150" Width="150">
        <Image Source="/Lighthouse.jpg" Stretch="Fill"/>
    </Grid>
</Intersoft:UXCallOut>

Remarks

The HeaderedContentControl inherits the Content property from ContentControl and defines the Header property that is of type Object. Header provides a heading for the control. Like the Content property of a ContentControl, the Header can be any type.

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.