Compartir a través de


IXRColumnDefinition (Compact 2013)

3/28/2014

This class defines a column in a grid object.

Syntax

class IXRColumnDefinition : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

    IXRColumnDefinition

Methods

Method

Description

IXRColumnDefinition::GetActualWidth

Retrieves a value that represents the actual rendered width of this column definition.

IXRColumnDefinition::GetMaxWidth

Retrieves a value that represents the maximum width of this column definition.

IXRColumnDefinition::GetMinWidth

Retrieves a value that represents the minimum width of this column definition.

IXRColumnDefinition::GetWidth

Retrieves the calculated width of this column definition.

IXRColumnDefinition::SetMaxWidth

Sets a value that represents the maximum width of this column definition.

IXRColumnDefinition::SetMinWidth

Sets a value that represents the minimum width of this column definition.

IXRColumnDefinition::SetWidth

Sets an XRGridLength value of this column 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 IXRColumnDefinition for each column in a grid. If you do not specify an IXRColumnDefinition, by default the grid will contain a single column with "star" sized width.

To set a group of column definition elements by using C++ code, add the IXRColumnDefinition to an IXRColumnDefinitionCollection. You can retrieve a pointer to this collection from the IXRGrid object, by calling IXRGrid::GetColumnDefinitions.

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

You can also define a column definition in Microsoft Silverlight 3. 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 ColumnDefinition Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.ColumnDefinition

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management