Skip to content

FlowColumns

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

A panel that uses the width it gets instead of stretching its children: as many equal columns as fit FlowColumns.MinColumnWidth (at most FlowColumns.MaxColumns, never more than the visible children), each child as wide as its column. A narrow place gives one column, a wide one several, like a flex wrap. Invisible children take no room. Used by the node panel of Vision Center (its cards, and the fields in its forms) and the tiles of the Plugins page (FlowPacking.Tiles).

public sealed class FlowColumns : Panel

Inherits Panel

Set them in XAML (<ui:FlowColumns Name="..." />) or bind them.

Name Type Description
ColumnSpacing double The gap between two columns (default 12).
MaxColumns int The most columns, however wide the panel (default 4).
MinColumnWidth double A column is never narrower than this (unless the whole panel is).
Packing FlowPacking Row by row (form fields) or into the shortest column (cards).
RowSpacing double The gap between two children one above the other (default 8; the theme’s class form gives 10).
static int ColumnsFor(double width, double minColumnWidth, double spacing, int maxColumns, int visible)

The number of columns at width for visible children.