Skip to Content

Divider

A thin horizontal or vertical separator line with no children. Maps to a UIToolkit VisualElement with a fixed thickness, a background color, and an optional margin.

Constructor

Divider

Creates an Divider element.

ParameterDescription
axisThe draw axis. Defaults to Horizontal.
thicknessLine thickness in logical pixels. Defaults to 1.
colorLine color. Null means no explicit color is applied.
indentPerpendicular indent in logical pixels. Defaults to 0.
keyAn optional key for reconciliation identity.

Properties

Axis

The axis along which the divider is drawn.

Color

The color of the divider line. Null uses the inherited foreground color.

Indent

Space added on each side perpendicular to the divider axis. Defaults to 0.

Thickness

The thickness of the divider line in logical pixels. Defaults to 1.

Methods

ShouldRebuild

Last updated on