Handbook · Reference · Box and style

Layout box and style

Where in the UI. Layout inspector — Box and Style sections, above type-specific props.

LayoutBox

Absolute placement in normalized 0–1 space of the item surface. position is always absolute.

FieldMeaning
x, yOffset as a fraction of item width/height.
width, heightSize as a fraction. 1 = full surface.
zIndexStacking order.
anchorNine-point: topLeft … bottomRight. Interprets x/y relative to that point.
rotationDegrees. ValueSource: static, binding, or expression.

StyleBlock

Paint fields are ValueSources (static | binding | expression) unless noted.

FieldMeaning
colorForeground / text.
backgroundColorFill.
fontSizeLogical pixels; optional scaleFontWithItemSize.
fontWeightnormal | bold | semibold | light (enum, not bindable).
fontFamilyClosed template font id (enum).
textAlignleft | center | right | justify.
borderColor, borderWidthStroke.
borderRadiusCorner radius.
paddingInner inset.
opacity0–1.
elevation / bevelHost-mapped shadow and border lighting.

Visibility and enabled rules are separate objects on the component (show/hide, enable/disable from bindings or expressions). Source: component.ts LayoutBox, StyleBlock.