ConstrainedStackPanel Class
Represents a StackPanel control that will constrain children to the available extent. The first child's extent will be constrained like Grid star-sizing if the sum of child extents exceeds the available extent.
public class ConstrainedStackPanel : StackPanel, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement Panel StackPanel object
- Implements:
- IOrientedElement
Constructors
ConstrainedStackPanel()
Initializes an instance of the class.
public ConstrainedStackPanel()
Methods
ArrangeOverride(Size)
Arranges the content of a StackPanel element.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | Size |
Returns
- Size:
The System.Windows.Size that represents the arranged size of this StackPanel element and its child elements.
MeasureOverride(Size)
Measures the child elements of a StackPanel in anticipation of arranging them during the ArrangeOverride(Size) pass.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size |
Returns
- Size:
The System.Windows.Size that represents the desired size of the element.