次の方法で共有


XRGridUnitType (Windows Embedded CE 6.0)

1/6/2010

This enumeration describes the kind of value that a XRGridLength structure is holding.

Syntax

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

Members

  • XRGridUnitType_Auto
    The size is determined by the size properties of the content object.
  • XRGridUnitType_Pixel
    The value is expressed in pixels.
  • XRGridUnitType_Star
    The value is expressed as a weighted proportion of available space.

Remarks

Star sizing is used to distribute available space by weighted proportions.

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 enumeration.

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Silverlight for Windows Embedded Enumerations
XRGridLength