WrapPanel class Core

Controls side by side at the width each asks for, wrapping onto the next line where the panel's width runs out: a row of chips, of tags, of small buttons. A line is as high as its highest control; the controls of a line stand at its top.

public sealed class WrapPanel : Panel
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease
Inherits
Panel

Constructors

WrapPanel

public WrapPanel();

Properties

Gap

public double Gap { get; init; }

The space between two controls on a line.

LineGap

public double LineGap { get; init; }

The space between two lines.

Methods

Add

public WrapPanel Add(Control child);

Adds a control at the end.

Arrange

public override void Arrange(LogRect bounds);

Measure

public override LogSize Measure(LogSize available);

Remarks

Without a width to keep to, all on one line: its width and height.