Xamarin.Forms.ListView.CreateDefault Method
Creates an instance of the default visual representation of an item.

Syntax

protected override Cell CreateDefault (object item)

Parameters

item
The item to create a default visual for.

Returns

A Xamarin.Forms.TextCell instance with its text set to the string representation of the object (object.ToString).

Remarks

This method is called by the templating system when ListView.ItemTemplate is null.

The BindableObject.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.

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