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

string

Properties

AccessibilityName

Gets the explicit accessibility label, title, or inherited name in that order.

public override string AccessibilityName { get; }

Property Value

string

AccessibilityRole

Gets the group accessibility role.

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

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

int

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

float

HeaderIndent

Gets or sets the non-negative title inset from the leading border edge.

public float HeaderIndent { get; set; }

Property Value

float

Padding

Gets or sets the spacing between the border and group content.

public Thickness Padding { get; set; }

Property Value

Thickness

Title

Gets or sets the title displayed in the border header.

public string Title { get; set; }

Property Value

string

Methods

OnTemplateApplied()

Synchronizes the title presenter after the control template is applied.

protected override void OnTemplateApplied()