Intersoft ClientUI Documentation
GroupBox Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : GroupBox Class






Represents a logical group that hosts a collection of input controls.

Object Model

GroupBox Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="GroupElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<DescriptionAttribute("Represents a logical group that hosts a collection of input controls.")>
<TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Shapes.Path)>
<TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Shapes.Path)>
<StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)>
Public Class GroupBox 
   Inherits Intersoft.Client.Framework.ISHeaderedContentControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As GroupBox
C# 
[TemplatePartAttribute(Name="GroupElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[DescriptionAttribute("Represents a logical group that hosts a collection of input controls.")]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Shapes.Path)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Shapes.Path)]
[StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
public class GroupBox : Intersoft.Client.Framework.ISHeaderedContentControl, IControlIFramework, ILicensing  
Delphi 
public class GroupBox = class(Intersoft.Client.Framework.ISHeaderedContentControl, IControl, IFramework, ILicensing)
JScript 
TemplatePartAttribute(Name="GroupElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)
TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)
DescriptionAttribute("Represents a logical group that hosts a collection of input controls.")
TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Shapes.Path)
TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Shapes.Path)
StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)
TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)
public class GroupBox extends Intersoft.Client.Framework.ISHeaderedContentControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="GroupElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[DescriptionAttribute("Represents a logical group that hosts a collection of input controls.")]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Shapes.Path)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Shapes.Path)]
[StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
public __gc class GroupBox : public Intersoft.Client.Framework.ISHeaderedContentControl, IControlIFramework, ILicensing  
C++/CLI 
[TemplatePartAttribute(Name="GroupElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[DescriptionAttribute("Represents a logical group that hosts a collection of input controls.")]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Shapes.Path)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Shapes.Path)]
[StyleTypedPropertyAttribute(Property="HeaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
public ref class GroupBox : public Intersoft.Client.Framework.ISHeaderedContentControl, IControlIFramework, ILicensing  

Remarks

You use GroupBox to represent a single object that defined in the Content property. To display a title to the GroupBox, you set the Header property to a string value that you desire.

The following example shows how to define a simple GroupBox in XAML.

XAML Copy Code
<Intersoft:GroupBox Header="Likes and Interests"
                    Width="300" Height="200">
    
    <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
        <TextBlock Text="Content"/>
    </StackPanel>
    
</Intersoft:GroupBox>

GroupBox automatically measures the text width of the Header and draws a smooth round-corner 3D line around it, such as shown in the following figure.

 

You can customize many of the header settings and border appearance, add an image to the header, customize the header template and more. See GroupBox Overview to learn about these features.

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.UI.Controls.GroupBox
                           Intersoft.Client.UI.Controls.ExpandableGroupBox

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.