TabPanels

public sealed class TabPanels
A collection of panels.

Properties

IsEmpty

#
Gets whether this collection is empty.
public bool IsEmpty { get; }

LeftToRight

#
Enumerate over all panel from left to right.
public IEnumerable<TabPanel> LeftToRight { get; }

RightToLeft

#
Enumerate over all panels from right to left.
public IEnumerable<TabPanel> RightToLeft { get; }

TotalWidth

#
Gets the total width needed to stack the current panels.
public float TotalWidth { get; }

Methods

DrawAll

#
Draw all the panels.
public void DrawAll(
context,
selectedItem
)

ShrinkPanels

#
Shrink the panels until the combined width is less than the target width, or until no further shrinkage is possible. TODO: this needs a panel-group as well.
public bool ShrinkPanels(
limit
)

StackPanels

#
Stack all panels using a single anchor point.
public void StackPanels(
PointF
anchor
)