TabPanels

public sealed class TabPanels
A collection of panels.

Properties

IsEmpty

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

LeftToRight

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

RightToLeft

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

TotalWidth

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

Methods

DrawAll

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

ShrinkPanels

#
public bool ShrinkPanels(float limit)
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.
limit (float)

StackPanels

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