Partager via


XRGridUnitType (Compact 2013)

3/28/2014

This enumeration describes how the width of a column or the height of a row in a grid is determined.

Syntax

enum XRGridUnitType{
    XRGridUnitType_Auto=0,
    XRGridUnitType_Pixel=1,
    XRGridUnitType_Star=2,
};

Members

  • XRGridUnitType_Auto
    The size is determined by the space needed by the objects that are contained in the column or row.
  • XRGridUnitType_Pixel
    The size is expressed in pixels.
  • XRGridUnitType_Star
    The size is expressed as a weighted proportion of available space by using star sizing.

Remarks

The XRGridUnitType enumeration is used in the XRGridLength structure to specify how to interpret the value of the other member of that structure.

In Extensible Application Markup Language (XAML), star sizings are expressed as * or <n>*. For example, with two columns in a grid, one sized * and the other sized 2*, the first would receive a third of the available space, and the second would receive two-thirds of the available space.

.NET Framework Equivalent

System.Windows.GridUnitType

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
XRGridLength
IXRGrid