Skip to content

GridContext

Namespace: Hex1b

Assembly: Hex1b.dll

Builder context for constructing a . Provides and collections for explicit grid dimension definitions, and a method for creating cells.

csharp
public sealed class GridContext : WidgetContext<GridWidget>

Inheritance

Object → WidgetContext<GridWidget> → GridContext

Properties

Columns

The explicit column definitions for the grid. Columns not covered by explicit definitions are auto-created from cell positions.

Returns: GridDefinitionCollection<GridColumnDefinition>

csharp
public GridDefinitionCollection<GridColumnDefinition> Columns { get; }

Rows

The explicit row definitions for the grid. Rows not covered by explicit definitions are auto-created from cell positions.

Returns: GridDefinitionCollection<GridRowDefinition>

csharp
public GridDefinitionCollection<GridRowDefinition> Rows { get; }

Methods

Cell(Func<WidgetContext<GridWidget>, Hex1bWidget>)

Creates a grid cell containing the widget returned by the builder callback.

Parameters:

Returns: GridCellWidget

A that can be further configured with row/column placement.

csharp
public GridCellWidget Cell(Func<WidgetContext<GridWidget>, Hex1bWidget> builder)

Released under the MIT License.