Skip to content

GridWidget

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A layout widget that arranges children in a two-dimensional grid with support for row and column spanning, explicit column/row sizing, and automatic grid dimension inference.

csharp
public sealed record GridWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<GridWidget>

Inheritance

ObjectHex1bWidgetGridWidget

Implements

Constructors

GridWidget(IReadOnlyList<GridCellWidget>, IReadOnlyList<GridColumnDefinition>, IReadOnlyList<GridRowDefinition>)

A layout widget that arranges children in a two-dimensional grid with support for row and column spanning, explicit column/row sizing, and automatic grid dimension inference.

Parameters:

csharp
public GridWidget(IReadOnlyList<GridCellWidget> Cells, IReadOnlyList<GridColumnDefinition> ColumnDefinitions, IReadOnlyList<GridRowDefinition> RowDefinitions)

Properties

Cells

The cell descriptors defining the grid content and placement.

Returns: IReadOnlyList<GridCellWidget>

csharp
public IReadOnlyList<GridCellWidget> Cells { get; init; }

ColumnDefinitions

Explicit column definitions. Auto-created columns default to Content sizing.

Returns: IReadOnlyList<GridColumnDefinition>

csharp
public IReadOnlyList<GridColumnDefinition> ColumnDefinitions { get; init; }

RowDefinitions

Explicit row definitions. Auto-created rows default to Content sizing.

Returns: IReadOnlyList<GridRowDefinition>

csharp
public IReadOnlyList<GridRowDefinition> RowDefinitions { get; init; }

Released under the MIT License.