Table of Contents

Class WrapPanel

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A container that arranges its child widgets in a sequence that wraps at the edge of the container.

public class WrapPanel : Container, IItemWithId, INotifyAttachedPropertyChanged, IContainer
Inheritance
WrapPanel
Implements
Inherited Members

Constructors

WrapPanel()

Initializes a new instance of the WrapPanel class.

public WrapPanel()

Properties

Aligned

Gets or sets a value indicating whether child widgets in a row/column should be aligned to the row height/column width.

public bool Aligned { get; set; }

Property Value

bool

HorizontalSpacing

Gets or sets the horizontal spacing between child widgets.

public int HorizontalSpacing { get; set; }

Property Value

int

Orientation

Gets or sets the orientation of the layout (Horizontal or Vertical).

public Orientation Orientation { get; set; }

Property Value

Orientation

PreferredHeight

Gets or sets the preferred height of the wrap panel.

public int? PreferredHeight { get; set; }

Property Value

int?

PreferredWidth

Gets or sets the preferred width of the wrap panel.

public int? PreferredWidth { get; set; }

Property Value

int?

UniformSizing

Gets or sets a value indicating whether all child widgets should have the same size, based on the largest child.

public bool UniformSizing { get; set; }

Property Value

bool

VerticalSpacing

Gets or sets the vertical spacing between child widgets.

public int VerticalSpacing { get; set; }

Property Value

int

Methods

CopyFrom(Widget)

Copies the properties from another widget into this one.

protected override void CopyFrom(Widget w)

Parameters

w Widget

The widget to copy from.