Partager via


IXRRowDefinition (Compact 2013)

3/28/2014

This class defines a row in a grid object.

Syntax

class IXRRowDefinition : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

    IXRRowDefinition

Methods

Method

Description

IXRRowDefinition::GetActualHeight

Retrieves the rendered height of this row definition.

IXRRowDefinition::GetHeight

Retrieves the calculated height of this row definition.

IXRRowDefinition::GetMaxHeight

Retrieves a value that represents the maximum height of this row definition.

IXRRowDefinition::GetMinHeight

Retrieves a value that represents the minimum allowed height of this row definition.

IXRRowDefinition::SetHeight

Sets the XRGridLength value of this row definition.

IXRRowDefinition::SetMaxHeight

Sets a value that represents the maximum height of this row definition.

IXRRowDefinition::SetMinHeight

Sets a value that represents the minimum allowed height of this row definition.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

You can set an IXRRowDefinition for each row in a grid. If you do not specify an IXRRowDefintion, by default the grid will contain a single row with "star" sized height.

To set a group of row definition elements by using C++ code, add the IXRRowDefinition to an IXRRowDefinitionCollection. You can retrieve a pointer to this collection from the IXRGrid object, by calling IXRGrid::GetRowDefinitions.

The IXRRowDefinition class exposes only height properties. To set width properties in a grid object, create an instance of the IXRColumnDefinition class.

When you create a class instance, use an IXRRowDefinitionPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define a row definition in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the RowDefinition Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.RowDefinition

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management