Expand Minimize

GridUnitType Enumeration

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

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

public enum GridUnitType
<object property="enumerationMemberName" .../>

Member nameDescription
AutoThe size is determined by the size properties of the content object.
PixelThe value is expressed as a pixel.
StarThe 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft