GridUnitType Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public enum class GridUnitType

Member nameDescription
Auto

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

Pixel

The value is expressed as a pixel.

Star

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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: