ColumnDefinition.Width Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the calculated width of a ColumnDefinition element, or sets the GridLength value of a column that is defined by the ColumnDefinition.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<ColumnDefinition Width="doubleValue"/> - or - <ColumnDefinition Width="starSizing"/> -or- <ColumnDefinition Width="Auto"/>
XAML Values
Property Value
Type: System.Windows.GridLengthThe GridLength that represents the width of the column. The default value is 1.0.
Dependency property identifier field: WidthProperty
If a child element is added to a column in a Grid, and the column has its Width property set to Auto, the child will be measured without restrictions. This behavior can prevent horizontal scroll bars from displaying if a ScrollViewer is being used, as the child element is measured as unbounded. For purposes of display, the child is clipped instead of scrolled.
The default GridUnitType is Star.