Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Grid Class
Grid Properties
 ShowGridLines Property
Other versions are also available for the following:
.NET Framework Class Library for Silverlight
Grid..::.ShowGridLines Property
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

Visual Basic (Declaration)
Public Property ShowGridLines As Boolean
Visual Basic (Usage)
Dim instance As Grid
Dim value As Boolean

value = instance.ShowGridLines

instance.ShowGridLines = value
C#
public bool ShowGridLines { get; set; }
Visual C++
public:
property bool ShowGridLines {
    bool get ();
    void set (bool value);
}
JScript
public function get ShowGridLines () : boolean
public function set ShowGridLines (value : boolean)
XAML Attribute Usage
<object ShowGridLines="bool"/>

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. Setting ShowGridLines to true 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.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker