IXRGrid::GetShowGridLines (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetShowGridLines(
    bool *pShowGridLines
) = 0;

Parameters

  • pShowGridLines
    [out] Pointer to a Boolean that indicates whether gridlines are visible inside this grid object. This value is true if gridlines are visible; otherwise, it is 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 pShowGridLines should return 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::SetShowGridLines