Xamarin.Forms.Core
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
Xamarin.Forms.Element
Provides base class and capabilities for all Forms cells. Cells are elements meant to be added to or .
The subtypes of are:
Type
Description
-
EntryCell
A with a label and a single line text entry field.
-
SwitchCell
A with a label and an on/off switch.
-
TextCell
A with primary and secondary text.
-
ImageCell
A that also includes an image.
-
ViewCell
A containing a developer-defined .
The various subclasses are shown in the following image:
XAML for Xamarin.Forms supports the following properties for the class:
Property
Value
-
ContextActions
A list of objects to display when the user performs the context action.
-
IsEnabled
or , indicating whether the animation for is displayed.
Constructor
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
Initializes a new instance of the Cell class.
Cell class is abstract, this constructor is never invoked directly.
Event
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
System.EventHandler
Occurs when the visual representation of the Cell is being added to the visual layout.
This method is raised before the cell is on screen.
Property
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Collections.Generic.IList<Xamarin.Forms.MenuItem>
Gets a list of menu items to display when the user performs the device-specific context gesture on the Cell.
The list of menu items that will be displayed when the user performs the device-specific context gesture on the Cell.
The context gesture on the iOS platform is a left swipe. For Android and Windows Phone operating systems, the context gesture is a press and hold.
Event
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
System.EventHandler
Occurs when the visual representation of the Cell is being removed from the visual layout.
This method is for virtualization usage only. It is not gauranteed to fire for all visible Cells when the ListView or TableView is removed from the screen. Additionally it fires during virtualization, which may not correspond directly with removal from the screen depending on the platform virtualization technique used.
Method
2.0.0.0
System.Void
Immediately updates the cell's size.
Developers can call this method to update the cell's size, even if the cell is currently visible. Developers should note that this operation can be expensive.
Property
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Boolean
Gets a value that indicates whether the cell has at least one menu item in its list property.
To be added.
To be added.
Property
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
System.Double
Gets or sets the height of the Cell.
A double that represents the height of the cell.
The property is ignored if the app developer sets the or property on the surrounding to . In that case, the or property is used instead.
Property
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
System.Boolean
Gets or sets the IsEnabled state of the Cell. This is a bindable property.
A bool. Default is .
Field
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
Xamarin.Forms.BindableProperty
Identifies the IsEnabled bindable property.
Method
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
System.Void
Invoked whenever an event occurs. Implement this method to add class handling for this event.
Method
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
Event that is raised when the binding context is changed.
To be added.
Method
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
System.Void
Invoked whenever an event occurs. Implement this method to add class handling for this event.
Method
1.0.0.0
1.1.0.0
1.2.0.0
System.Void
Invoked whenever a long press is applied to the Cell.
Method
1.5.0.0
2.0.0.0
System.Void
Application developers can override this method to do actions when the cell's parent is set.
To be added.
Method
1.5.0.0
2.0.0.0
System.Void
The name of the property on which to monitor value changes.
TApplication developers can override this method to do actions when the property named by is set.
To be added.
Method
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
System.Void
Invoked whenever the Cell is Tapped.
Property
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
System.Double
Gets the height of the rendered cell on the device.
Event
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
System.EventHandler
Occurs when the Cell is Tapped.