Class WrapPanel
Positions child elements sequentially from left to right or top to bottom. When elements extend beyond the panel edge, elements are positioned in the next row or column.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public class WrapPanel : Panel, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceWrapPanel()
Initializes a new instance of the WrapPanel class.
Declaration
public WrapPanel()
Fields
| Improve this Doc View SourceItemHeightProperty
Identifies the ItemHeight dependency property.
Declaration
public static readonly DependencyProperty ItemHeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty | The identifier for the ItemHeight dependency property. |
ItemWidthProperty
Identifies the ItemWidth dependency property.
Declaration
public static readonly DependencyProperty ItemWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty | The identifier for the ItemWidth dependency property. |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type | Description |
---|---|
DependencyProperty | The identifier for the Orientation dependency property. |
Properties
| Improve this Doc View SourceItemHeight
Gets or sets the height of the layout area for each item that is contained in a WrapPanel.
Declaration
[TypeConverter(typeof(LengthConverter))]
public double ItemHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height applied to the layout area of each item that is contained within a WrapPanel. The default value is System.Double.NaN. |
ItemWidth
Gets or sets the width of the layout area for each item that is contained in a WrapPanel.
Declaration
[TypeConverter(typeof(LengthConverter))]
public double ItemWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width that applies to the layout area of each item that is contained in a WrapPanel. The default value is System.Double.NaN. |
Orientation
Gets or sets the direction in which child elements are arranged.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | One of the Orientation values. The default is Horizontal. |
Methods
| Improve this Doc View SourceArrangeOverride(Size)
Arranges and sizes the WrapPanel control and its child elements.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize | The area within the parent that the WrapPanel should use arrange itself and its children. |
Returns
Type | Description |
---|---|
Size | The actual size used by the WrapPanel. |
Overrides
| Improve this Doc View SourceMeasureOverride(Size)
Measures the child elements of a WrapPanel in anticipation of arranging them during the ArrangeOverride(Size) pass.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
Size | constraint | The size available to child elements of the wrap panel. |
Returns
Type | Description |
---|---|
Size | The size required by the WrapPanel and its elements. |