Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
property bool ShowGridLines {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

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

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.

Identifier field

ShowGridLinesProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft