WrapPanel Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
WrapPanel is a panel that position child control vertically or horizontally based on the orientation and when max width / max height is reached a new row (in case of horizontal) or column (in case of vertical) is created to fit new controls.
public class WrapPanel : Windows.UI.Xaml.Controls.Panel
type WrapPanel = class
inherit Panel
Public Class WrapPanel
Inherits Panel
- Inheritance
-
Windows.UI.Xaml.Controls.PanelWrapPanel
Constructors
WrapPanel() |
Fields
HorizontalSpacingProperty |
Identifies the HorizontalSpacing dependency property. |
OrientationProperty |
Identifies the Orientation dependency property. |
PaddingProperty |
Identifies the Padding dependency property. |
StretchChildProperty |
Identifies the StretchChild dependency property. |
VerticalSpacingProperty |
Identifies the VerticalSpacing dependency property. |
Properties
HorizontalSpacing |
Gets or sets a uniform Horizontal distance (in pixels) between items when Orientation is set to Horizontal, or between columns of items when Orientation is set to Vertical. |
Orientation |
Gets or sets the orientation of the WrapPanel. Horizontal means that child controls will be added horizontally until the width of the panel is reached, then a new row is added to add new child controls. Vertical means that children will be added vertically until the height of the panel is reached, then a new column is added. |
Padding |
Gets or sets the distance between the border and its child object. |
StretchChild |
Gets or sets a value indicating how to arrange child items |
VerticalSpacing |
Gets or sets a uniform Vertical distance (in pixels) between items when Orientation is set to Vertical, or between rows of items when Orientation is set to Horizontal. |
Methods
ArrangeOverride(Size) | Windows.UI.Xaml.Controls.Panel.ArrangeOverride(Windows.Foundation.Size) |
MeasureOverride(Size) | Windows.UI.Xaml.Controls.Panel.MeasureOverride(Windows.Foundation.Size) |