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:
builder(Func<GridWidget>, Hex1bWidget>): A callback that builds the cell's content widget.
Returns: GridCellWidget
A that can be further configured with row/column placement.
csharp
public GridCellWidget Cell(Func<WidgetContext<GridWidget>, Hex1bWidget> builder)