Class WrapPanel
Positions child elements in sequential position from left to right, breaking content to the next line 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 WrapPanel : Panel, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, IChildIndexProvider, INavigableContainer
- Inheritance
-
WrapPanel
- Implements
- Inherited Members
- Extension Methods
Constructors
WrapPanel()
public WrapPanel()
Fields
ItemHeightProperty
Defines the ItemHeight property.
public static readonly StyledProperty<double> ItemHeightProperty
Field Value
ItemSpacingProperty
Defines the ItemSpacing dependency property.
public static readonly StyledProperty<double> ItemSpacingProperty
Field Value
ItemWidthProperty
Defines the ItemWidth property.
public static readonly StyledProperty<double> ItemWidthProperty
Field Value
ItemsAlignmentProperty
Defines the ItemsAlignment property.
public static readonly StyledProperty<WrapPanelItemsAlignment> ItemsAlignmentProperty
Field Value
LineSpacingProperty
Defines the LineSpacing dependency property.
public static readonly StyledProperty<double> LineSpacingProperty
Field Value
OrientationProperty
Defines the Orientation property.
public static readonly StyledProperty<Orientation> OrientationProperty
Field Value
Properties
ItemHeight
Gets or sets the height of all items in the WrapPanel.
public double ItemHeight { get; set; }
Property Value
ItemSpacing
Gets or sets the spacing between lines.
public double ItemSpacing { get; set; }
Property Value
ItemWidth
Gets or sets the width of all items in the WrapPanel.
public double ItemWidth { get; set; }
Property Value
ItemsAlignment
Gets or sets the alignment of items in the WrapPanel.
public WrapPanelItemsAlignment ItemsAlignment { get; set; }
Property Value
LineSpacing
Gets or sets the spacing between items.
public double LineSpacing { get; set; }
Property Value
Orientation
Gets or sets the orientation in which child controls will be laid out.
public Orientation Orientation { get; set; }
Property Value
Methods
ArrangeOverride(Size)
Positions child elements as part of a layout pass.
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
SizeThe size available to the control.
Returns
- Size
The actual size used.
MeasureOverride(Size)
Measures the control and its child elements as part of a layout pass.
protected override Size MeasureOverride(Size constraint)
Parameters
constraint
Size
Returns
- Size
The desired size for the control.