Share via


IXRGrid::SetShowGridLines (Windows Embedded CE 6.0)

1/6/2010

This method sets a value that indicates whether gridlines are visible inside this grid object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetShowGridLines(
    bool ShowGridLines
) = 0; 

Parameters

  • ShowGridLines
    [in] Boolean that indicates whether gridlines are visible inside this grid object. Set this value to true if gridlines are visible; otherwise, set it to false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If gridlines are visible, Silverlight creates dotted lines around all child elements inside a grid when it is rendered on-screen. Only dotted lines are available because gridlines are intended as a design tool to debug layout problems.

We recommend that you set ShowGridLines to false in production-quality code. To create the appearance of lines inside a grid object, you can style the child elements inside the grid to have borders. For example, use IXRControl::SetBorderBrush to define a border background on a child element.

.NET Framework Equivalent

System.Windows.Controls.Grid.ShowGridLines

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRGrid
IXRGrid::GetShowGridLines