Xamarin.Forms.ItemsView<TVisual>.CreateDefault Method
Creates a default TVisual instance for item.

Syntax

protected abstract TVisual CreateDefault (object item)

Parameters

item
The user object

Returns

An instance of the TVisual class.

Remarks

This method is called by the templating system when ItemsView<TVisual>.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