ListView.CreateDefault(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of the default visual representation of an item.
protected override Xamarin.Forms.Cell CreateDefault (object item);
override this.CreateDefault : obj -> Xamarin.Forms.Cell
Parameters
- item
- System.Object
The item to create a default visual for.
Returns
A TextCell instance with its text set to the string representation of the object (System.Object.ToString).
Remarks
This method is called by the templating system when ItemTemplate is null
.
The BindingContext of the returned object will automatically be set to item
, there is no need to set it yourself. If you do, it will be overridden.