IXRGrid::GetShowGridLines (Windows Embedded CE 6.0)
1/6/2010
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, 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 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 |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |