Class GroupBox
- Namespace
- Forma
- Assembly
- Forma.dll
Groups related content inside a titled border.
[TemplatePart("PART_HeaderPresenter", typeof(Label), false)]
[TemplatePart("PART_ContentPresenter", typeof(ContentPresenter), false)]
public sealed class GroupBox : ContentControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
GroupBox
- Implements
- Inherited Members
Constructors
GroupBox()
Initializes a group that allows pointer input to pass to its content.
public GroupBox()
Fields
HeaderPresenterPartName
Identifies the optional label that presents the group title.
public const string HeaderPresenterPartName = "PART_HeaderPresenter"
Field Value
Properties
AccessibilityName
Gets the explicit accessibility label, title, or inherited name in that order.
public override string AccessibilityName { get; }
Property Value
AccessibilityRole
Gets the group accessibility role.
public override AccessibilityRole AccessibilityRole { get; }
Property Value
BackgroundColor
Gets or sets the group body background, or transparent to leave it unfilled.
public Color BackgroundColor { get; set; }
Property Value
- Color
BorderColor
Gets or sets the border color, or transparent to use the theme panel border.
public Color BorderColor { get; set; }
Property Value
- Color
BorderWidth
Gets or sets the non-negative border width.
public int BorderWidth { get; set; }
Property Value
HeaderForeground
Gets or sets the title color, or transparent to use the label foreground.
public Color HeaderForeground { get; set; }
Property Value
- Color
HeaderGap
Gets or sets the non-negative gap cut around the title in the top border.
public float HeaderGap { get; set; }
Property Value
HeaderIndent
Gets or sets the non-negative title inset from the leading border edge.
public float HeaderIndent { get; set; }
Property Value
Padding
Gets or sets the spacing between the border and group content.
public Thickness Padding { get; set; }
Property Value
Title
Gets or sets the title displayed in the border header.
public string Title { get; set; }
Property Value
Methods
OnTemplateApplied()
Synchronizes the title presenter after the control template is applied.
protected override void OnTemplateApplied()