IsAuto Property
Collapse the table of content
Expand the table of content

GridLength.IsAuto Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object.

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

public bool IsAuto { get; }

Property Value

Type: System.Boolean
true if the GridUnitType property is GridUnitType.Auto; otherwise, false.

The default GridUnitType value is GridUnitType.Auto. Therefore, this property returns true if you do not specify a GridUnitType when creating the instance.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft