Xamarin.Forms Guides | Samples

Xamarin.Forms.ColumnDefinitionCollection Class

See Also: ColumnDefinitionCollection

Syntax

public sealed class ColumnDefinitionCollection : DefinitionCollection<ColumnDefinition>

Remarks

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

<Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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

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

Public Constructors