AutoCollapseStackPanel Class
Represents a Panel that can collapse its children that don't fit within the available width, useful when adding custom buttons within window title bars via WindowChrome.
public class AutoCollapseStackPanel : Panel
- Inheritance:
- object Visual UIElement FrameworkElement Panel object
Constructors
AutoCollapseStackPanel()
Initializes an instance of the class.
public AutoCollapseStackPanel()
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
MeasureOverride(Size)
Measures all children given an available size and returns the element's desired size based on the size of its children.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size | The size the element is suggested to fit inside. |
Returns
- Size:
The desired size of the element.