ConstrainedStackPanel Class
Represents a System.Windows.Controls.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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IScrollInfo, IStackMeasure, IOrientedElement
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Panel System.Windows.Controls.StackPanel Object
- Implements:
- IOrientedElement
Constructors
ConstrainedStackPanel()
public ConstrainedStackPanel()
Methods
ArrangeOverride(Size)
Arranges the content of a System.Windows.Controls.StackPanel element.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | System.Windows.Size |
Returns
- System.Windows.Size:
The System.Windows.Size that represents the arranged size of this System.Windows.Controls.StackPanel element and its child elements.
MeasureOverride(Size)
Measures the child elements of a System.Windows.Controls.StackPanel in anticipation of arranging them during the System.Windows.Controls.StackPanel.ArrangeOverride(System.Windows.Size) pass.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | System.Windows.Size |
Returns
- System.Windows.Size:
The System.Windows.Size that represents the desired size of the element.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()