Freigeben über


ListView.CreateDefault(Object) Method

Definition

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.

Applies to