Class Grid
Forms9Patch Grid layout.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class Grid : Layout<Grid>, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, IGestureController, IGestureRecognizers, IPaddingElement, IControlTemplated, IDisposable, IViewController, IVisualElementController, IElementController, ILayout, IBackground, IShape, IElement, ILayout, ILayoutController, IViewContainer<View>, IGridController, IElementConfiguration<Grid>, IElementConfiguration<Grid>
Fields
ColumnDefinitionsProperty
Backing store for the column definitions property.
Declaration
public static readonly BindableProperty ColumnDefinitionsProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ColumnSpacingProperty
Backing store for the column spacing property.
Declaration
public static readonly BindableProperty ColumnSpacingProperty
Field Value
Type | Description |
---|---|
BindableProperty |
RowDefinitionsProperty
Backing store for the row definitions property.
Declaration
public static readonly BindableProperty RowDefinitionsProperty
Field Value
Type | Description |
---|---|
BindableProperty |
RowSpacingProperty
Backing store for the row spacing property.
Declaration
public static readonly BindableProperty RowSpacingProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
Children
Children of Grid
Declaration
public Grid.IGridList<View> Children { get; }
Property Value
Type | Description |
---|---|
Grid.IGridList<View> |
ColumnDefinitions
Gets or sets the column definitions.
Declaration
public ColumnDefinitionCollection ColumnDefinitions { get; set; }
Property Value
Type | Description |
---|---|
ColumnDefinitionCollection | The column definitions. |
ColumnSpacing
Gets or sets the column spacing.
Declaration
public double ColumnSpacing { get; set; }
Property Value
Type | Description |
---|---|
Double | The column spacing. |
RowDefinitions
Gets or sets the row definitions.
Declaration
public RowDefinitionCollection RowDefinitions { get; set; }
Property Value
Type | Description |
---|---|
RowDefinitionCollection | The row definitions. |
RowSpacing
Gets or sets the row spacing.
Declaration
public double RowSpacing { get; set; }
Property Value
Type | Description |
---|---|
Double | The row spacing. |
Methods
GetColumn(BindableObject)
Gets the column of element in Grid
Declaration
public static int GetColumn(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Int32 | The column. |
GetColumnSpan(BindableObject)
Gets the column span of element in Grid
Declaration
public static int GetColumnSpan(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Int32 | The column span. |
GetRow(BindableObject)
Gets the row of element in Grid
Declaration
public static int GetRow(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Int32 | The row. |
GetRowSpan(BindableObject)
Gets the row span of element in Grid
Declaration
public static int GetRowSpan(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Int32 | The row span. |
InvalidateMeasureInernalNonVirtual(InvalidationTrigger)
Invalidates the measure inernal non virtual.
Declaration
public void InvalidateMeasureInernalNonVirtual(InvalidationTrigger trigger)
Parameters
Type | Name | Description |
---|---|---|
InvalidationTrigger | trigger | Trigger. |
On<T>()
Marker interface for returning platform-specific configuration elements.
Declaration
public IPlatformElementConfiguration<T, Grid> On<T>()
where T : IConfigPlatform
Returns
Type | Description |
---|---|
IPlatformElementConfiguration<T, Grid> |
Type Parameters
Name | Description |
---|---|
T |
SetColumn(BindableObject, Int32)
Sets the column of element in Grid
Declaration
public static void SetColumn(BindableObject bindable, int value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Int32 | value | Value. |
SetColumnSpan(BindableObject, Int32)
Sets the column span of element in Grid
Declaration
public static void SetColumnSpan(BindableObject bindable, int value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Int32 | value | Value. |
SetRow(BindableObject, Int32)
Sets the row of element in Grid
Declaration
public static void SetRow(BindableObject bindable, int value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Int32 | value | Value. |
SetRowSpan(BindableObject, Int32)
Sets the row span of element in Grid
Declaration
public static void SetRowSpan(BindableObject bindable, int value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Int32 | value | Value. |
Explicit Interface Implementations
IElementConfiguration<Grid>.On<T>()
Declaration
IPlatformElementConfiguration<T, Grid> IElementConfiguration<Grid>.On<T>()
where T : IConfigPlatform
Returns
Type | Description |
---|---|
IPlatformElementConfiguration<T, Grid> |
Type Parameters
Name | Description |
---|---|
T |