SpacingWrapPanel Class

Definition

A WrapPanel that adds extra space between its items. The spacing is contolled by the HorizontalItemSpacing and VerticalItemSpacing properties. If both HorizontalItemSpacing and VerticalItemSpacing are 0.0, this panel arranges items identically to a normal WrapPanel.

public ref class SpacingWrapPanel : System::Windows::Controls::WrapPanel
public class SpacingWrapPanel : System.Windows.Controls.WrapPanel
type SpacingWrapPanel = class
    inherit WrapPanel
Public Class SpacingWrapPanel
Inherits WrapPanel
Inheritance
SpacingWrapPanel

Constructors

SpacingWrapPanel()

Initializes a new instance of SpacingWrapPanel.

Properties

HorizontalItemSpacing

Gets or sets the horizontal spacing between items. If the value is NaN (Auto), items are spaced evenly over the entire width of the panel. For horizontally-oriented panels, the spacing is applied between individual items in a row. For vertically-oriented panels, the spacing is applied between columns.

ShouldStretchItemsToFill
VerticalItemSpacing

Gets or sets the vertical spacing between items. If the value is NaN (Auto), items are spaced evenly over the entire height of the panel. For vertically-oriented panels, the spacing is applied between individual items in a column. For horizontally-oriented panels, the spacing is applied between rows.

Methods

ArrangeOverride(Size)

Arranges the children of this panel

MeasureOverride(Size)

Measures this panel

Applies to