Table of Contents

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. Active tab is positioned below header, inactive tabs are collapsed. Accounts for the TabControl's margins.

public void ArrangeChildren(LayoutNode node, LayoutRect bounds)

Parameters

node LayoutNode
bounds LayoutRect

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

node LayoutNode
constraints LayoutConstraints

Returns

LayoutSize