Grid.ShowGridLines Property

Definition

Gets or sets a value that indicates whether grid lines are visible within this Grid.

C#
public bool ShowGridLines { get; set; }

Property Value

true if grid lines are visible; otherwise, false. The default value is false.

Remarks

Enabling grid lines creates dotted lines around all the elements within a Grid. Only dotted lines are available because this property is intended as a design tool to debug layout problems and is not intended for use in production quality code. If you want lines inside a Grid, style the elements within the Grid to have borders.

Dependency Property Information

Item Value
Identifier field ShowGridLinesProperty
Metadata properties set to true None

Applies to

Produkt Versionen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9