Xamarin.Forms Guides | Samples

Xamarin.Forms.ColumnDefinitionCollection Class

See Also: ColumnDefinitionCollection


public sealed class ColumnDefinitionCollection : DefinitionCollection<ColumnDefinition>


App developers can specify 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 GridUnitType values:

XAML Example

    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="100" />


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,,,,

The members of Xamarin.Forms.ColumnDefinitionCollection are listed below.

See Also: Inherited members from Xamarin.Forms.DefinitionCollection<Xamarin.Forms.ColumnDefinition>

Public Constructors