Export (0) Print
Expand All

Grid.ShowGridLines Property

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

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

member ShowGridLines : bool with get, set
<object ShowGridLines="bool" .../>

Property Value

Type: System.Boolean
true if grid lines are visible; otherwise, false. The default value is false.

Identifier field

ShowGridLinesProperty

Metadata properties set to true

None

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft