IXRGrid::SetShowGridLines (Compact 2013)

3/28/2014

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, XAML for Windows Embedded 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

See Also

Reference

IXRGrid
IXRGrid::GetShowGridLines