This document specifies the current behavior and design of the Header control as implemented.
For end-user usage and examples, see Header.
Left, Center, Right) with predictable placement and clipping.1).Left : Visual?Center : Visual?Right : Visual?HorizontalAlignment = Align.Stretch.1 (fixed).src/XenoAtom.Terminal.UI/Controls/Header.cssrc/XenoAtom.Terminal.UI/Styling/HeaderStyle.cssamples/ControlsDemo/Demos/HeaderDemo.cssrc/XenoAtom.Terminal.UI.Tests/AppChromeTests.csChildren are exposed in order: Left, Center, Right (when present).
maxWidth = infinite and maxHeight = 1 (single-line).leftWidth + rightWidth (when Center is null)max(leftWidth + rightWidth, leftWidth + centerWidth + rightWidth)SizeHints.FlexX with:
min = (0, 1)natural = (requiredWidth, 1)growX = 1, shrinkX = 1This means Header is happy to stretch horizontally but never requests extra height.
Given a final rect (width W):
Left is arranged at X with width min(W, leftDesiredWidth).Right is arranged at Right - min(W, rightDesiredWidth).Center (if present) gets at most max(0, W - leftW - rightW) cells.
Center will clip naturally if it is wider than the remaining space.
HeaderStyle resolves to a single cell Style:
Foreground: HeaderStyle.Foreground ?? theme.ForegroundBackground: HeaderStyle.Background ?? theme.SurfaceAltTextStyle.Bold.Header itself does not handle input. If a slot contains a focusable visual, that visual behaves normally.
HeaderDemo shows typical title/hint usage with non-wrapping markup visuals.AppChromeTests verifies header/footer integration when used in a DockLayout root.