GridUnitType Enumeration
Collapse the table of content
Expand the table of content

GridUnitType Enumeration


Describes the kind of value that a GridLength object is holding.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public enum GridUnitType

Member nameDescription

The size is determined by the size properties of the content object.


The value is expressed as a pixel.


The value is expressed as a weighted proportion of available space.

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

In Extensible Application Markup Language (XAML), star values are expressed as * or 2*. In the first case, the row or column would receive one times the available space; in the second case, the row or column would receive two times the available space, and so on.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft