See Also: ColumnDefinition Members
The Xamarin.Forms.ColumnDefinition class has the following XAML property:
| Property | Value |
|---|---|
| Width | "*" or "Auto" to indicate the corresponding Xamarin.Forms.GridUnitType enumeration values, or a number to indicate an absolute width. |
App developers can specify Xamarin.Forms.GridUnitType values for the ColumnDefinition.Width property in XAML by nesting ColumnDefinition tags inside tags for the Grid.ColumnDefinitions collection property. The following example demonstrates setting three column widths to each of the three valid Xamarin.Forms.GridUnitType values:
XAML Example
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>