Skip to main content

Grid Fields

Fields

ColumnPropertyColumn property. This is an attached property. Grid defines Column property, so that it can be set on any element treated as a cell. Column property specifies child's position with respect to columns.
ColumnSpanPropertyColumnSpan property. This is an attached property. Grid defines ColumnSpan, so that it can be set on any element treated as a cell. ColumnSpan property specifies child's width with respect to columns. Example, ColumnSpan == 2 means that child will span across two columns.
IsSharedSizeScopePropertyIsSharedSizeScope property marks scoping element for shared size.
RowPropertyRow property. This is an attached property. Grid defines Row, so that it can be set on any element treated as a cell. Row property specifies child's position with respect to rows. Remarks:

Rows are 0 - based. In order to appear in first row, element should have Row property set to 0.

Default value for the property is 0.

RowSpanPropertyRowSpan property. This is an attached property. Grid defines RowSpan, so that it can be set on any element treated as a cell. RowSpan property specifies child's height with respect to row grid lines. Example, RowSpan == 3 means that child will span across three rows.
ShowGridLinesPropertyShowGridLines property. This property is used mostly for simplification of visual debugging. When it is set to true grid lines are drawn to visualize location of grid lines.

See Also

Reference

Grid Class
Avalonia.Controls Namespace