Class TabLayout
- Namespace
- SharpConsoleUI.Layout
- Assembly
- SharpConsoleUI.dll
Layout algorithm for TabControl that positions tab content below a header row. Similar to VerticalStackLayout but reserves space for tab headers.
public class TabLayout : ILayoutContainer
- Inheritance
-
TabLayout
- Implements
- Inherited Members
- Extension Methods
Methods
ArrangeChildren(LayoutNode, LayoutRect)
Arranges all children within the container's final bounds. Only the active tab's content is built into the layout tree (see ResolveLayout(IWindowControl)), so a single child is arranged below the header. A child whose own Visible flag is false collapses to nothing (the caller hid that page's content). Accounts for the TabControl's margins.
public void ArrangeChildren(LayoutNode node, LayoutRect bounds)
Parameters
nodeLayoutNodeboundsLayoutRect
MeasureChildren(LayoutNode, LayoutConstraints)
Measures all children within the container and returns the desired size. Reserves space for tab headers and the control's margins.
public LayoutSize MeasureChildren(LayoutNode node, LayoutConstraints constraints)
Parameters
nodeLayoutNodeconstraintsLayoutConstraints