AnimatedWrapPanel Class
Represents a panel that positions child elements in sequential order, breaking content to the next row or column at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.
public class AnimatedWrapPanel : PanelBase, ILogicalParent, IVisualParent
- Implements:
- ILogicalParent IVisualParent
Constructors
AnimatedWrapPanel()
Initializes an instance of the class.
public AnimatedWrapPanel()
Properties
IsEmptySpaceEvenlyDistributed
Gets or sets a value indicating whether any empty space in a row/column will be evenly distributed around the elements. This is a dependency property.
public bool IsEmptySpaceEvenlyDistributed { get; set; }
Property Value
- bool:
true
if any empty space in a row/column will be evenly distributed around the elements; otherwisefalse
. The default value isfalse
.
ItemHeight
Gets or sets a value that specifies the height of all items. This is a dependency property.
[TypeConverter(typeof(LengthConverter))]
public double ItemHeight { get; set; }
Property Value
Remarks
If this property is not set (or if it is set to Auto
in XAML or to NaN in code), the size of the layout partition is equal to the desired size of the child element.
ItemWidth
Gets or sets a value that specifies the width of all items. This is a dependency property.
[TypeConverter(typeof(LengthConverter))]
public double ItemWidth { get; set; }
Property Value
Remarks
If this property is not set (or if it is set to Auto
in XAML or to NaN in code), the size of the layout partition is equal to the desired size of the child element.
Orientation
Gets or sets the orientation that the child elements are arranged. This is a dependency property.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The orientation that the child elements are arranged. The default value is
Orientation.Horizontal
.
Methods
ArrangeElements(IList<UIElement>, Size)
Positions the specified elements and determines a size for a FrameworkElement-derived class.
public override Size ArrangeElements(IList<UIElement> elements, Size finalSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be arranged. |
finalSize | Size | The final area within the parent that this element should use to arrange itself and the specified elements. |
Returns
- Size:
The actual size used.
MeasureElements(IList<UIElement>, Size)
Measures the size in layout required for the specified elements and determines a size for the FrameworkElement-derived class.
public override Size MeasureElements(IList<UIElement> elements, Size availableSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be measured. |
availableSize | Size | The available size that this element can give to the specified elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of the specified elements.
Fields
IsEmptySpaceEvenlyDistributedProperty
Identifies the IsEmptySpaceEvenlyDistributed dependency property. This field is read-only.
public static readonly DependencyProperty IsEmptySpaceEvenlyDistributedProperty
ItemHeightProperty
Identifies the ItemHeight dependency property. This field is read-only.
public static readonly DependencyProperty ItemHeightProperty
ItemWidthProperty
Identifies the ItemWidth dependency property. This field is read-only.
public static readonly DependencyProperty ItemWidthProperty
OrientationProperty
Identifies the Orientation dependency property. This field is read-only.
public static readonly DependencyProperty OrientationProperty
Inherited Members
- PanelBase.AnimationCountProperty
- PanelBase.ArrangeAnimationProperty
- PanelBase.ArrangeHeightAnimatedProperty
- PanelBase.ArrangeStateProperty
- PanelBase.ArrangeWidthAnimatedProperty
- PanelBase.ArrangeXAnimatedProperty
- PanelBase.ArrangeYAnimatedProperty
- PanelBase.IsAnimatedProperty
- PanelBase.IsLayoutUpdatePendingProperty
- PanelBase.AreLeavingElementsAnimatedProperty
- PanelBase.ArrangeElement(UIElement, bool)
- PanelBase.ArrangeElement(UIElement, Rect?, bool)
- PanelBase.ArrangeElement(PanelBase, UIElement, bool)
- PanelBase.ArrangeElement(PanelBase, UIElement, Rect?, bool)
- PanelBase.GetArrangeHeightAnimated(UIElement)
- PanelBase.SetArrangeHeightAnimated(UIElement, double)
- PanelBase.ArrangeOverride(Size)
- PanelBase.GetArrangeRectAnimated(UIElement)
- PanelBase.GetArrangeState(UIElement)
- PanelBase.SetArrangeState(UIElement, ArrangeState)
- PanelBase.GetArrangeWidthAnimated(UIElement)
- PanelBase.SetArrangeWidthAnimated(UIElement, double)
- PanelBase.GetArrangeXAnimated(UIElement)
- PanelBase.SetArrangeXAnimated(UIElement, double)
- PanelBase.GetArrangeYAnimated(UIElement)
- PanelBase.SetArrangeYAnimated(UIElement, double)
- PanelBase.GetIsAnimated(UIElement)
- PanelBase.SetIsAnimated(UIElement, bool)
- PanelBase.MeasureOverride(Size)
- PanelBase.GetVisualChild(int)
- PanelBase.OnVisualChildrenChanged(DependencyObject, DependencyObject)
- PanelBase.ArrangeAnimation
- PanelBase.ArrangeAnimationResolved
- PanelBase.IsLayoutUpdatePending
- PanelBase.AreLeavingElementsAnimated
- PanelBase.HasLeavingChildren
- PanelBase.LeavingChildren
- PanelBase.VisualChildrenCount