Xamarin.Forms.Grid Members

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

See Also: Inherited members from Xamarin.Forms.Layout<Xamarin.Forms.View>

Public Constructors

Initializes a new instance of the Grid class.

Public Fields

static readonly
ColumnDefinitionsPropertyBindableProperty. Implements the Grid.ColumnDefinitions property, and allows the Xamarin.Forms.Grid class to bind it to properties on other objects at run time.
static readonly
ColumnPropertyBindableProperty. Implements the attached property that represents the zero-based column index of a child element. See Remarks.
static readonly
ColumnSpacingPropertyBindableProperty. Implements the Grid.ColumnSpacing property, and allows the Xamarin.Forms.Grid class to bind it to properties on other objects at run time.
static readonly
ColumnSpanPropertyBindableProperty. Implements the attached property that represents the number of columns that a child element spans. See Remarks.
static readonly
RowDefinitionsPropertyBindableProperty. Implements the Grid.RowDefinitions property, and allows the Xamarin.Forms.Grid class to bind it to properties on other objects at run time.
static readonly
RowPropertyBindableProperty. Implements the attached property that represents the zero-based row index of a child element. See Remarks.
static readonly
RowSpacingPropertyBindableProperty. Implements the Grid.RowSpacing property, and allows the Xamarin.Forms.Grid class to bind it to properties on other objects at run time.
static readonly
RowSpanPropertyBindableProperty. Implements the attached property that represents the number of rows that a child element spans, and allows the Xamarin.Forms.Grid class to bind it to properties on other objects at run time.

Public Properties

[read-only]
ChildrenGrid.IGridList<View>. Gets the collection of child elements of the Grid.
ColumnDefinitionsColumnDefinitionCollection. Provides the interface for the bound property that gets or sets the ordered collection of Xamarin.Forms.ColumnDefinition objects that control the layout of columns in the Xamarin.Forms.Grid.
ColumnSpacingdouble. Provides the interface for the bound property that gets or sets the distance between columns in the Grid.
RowDefinitionsRowDefinitionCollection. Provides the interface for the bound property that gets or sets the collection of RowDefinition objects that control the heights of each row.
RowSpacingdouble. Gets or sets the amount of space left between rows in the Grid. This is a bindable property.

Public Methods

static
GetColumn(BindableObject) : int
Gets the column of the bindable child element.
static
GetColumnSpan(BindableObject) : int
Gets the column span of the bindable child element.
static
GetRow(BindableObject) : int
Gets the row of the bindable child element.
static
GetRowSpan(BindableObject) : int
Gets the row span of the bindable child element.
static
SetColumn(BindableObject, int)
Changes the column in which a child element will be placed.
static
SetColumnSpan(BindableObject, int)
Changes the column span of the specified child element.
static
SetRow(BindableObject, int)
Changes the row in which a child element will be placed.
static
SetRowSpan(BindableObject, int)
Changes the row span of the specified child element.

Protected Methods

override
InvalidateMeasure()
Invalidates the grid layout.
override
LayoutChildren(double, double, double, double)
Lays out the child elements when the layout is invalidated.
override
OnAdded(View)
Method that is called when a child is added to this Xamarin.Forms.Grid element.
override
OnRemoved(View)
Method that is called when a child is removed from this Xamarin.Forms.Grid element.
override
OnSizeRequest(double, double) : SizeRequest
Method that is called when an attempt is made to resize this Xamarin.Forms.Grid element.