Freigeben über


ItemsView<TVisual>.CreateDefault(Object) Method

Definition

Creates a default TVisual instance for item.

protected abstract TVisual CreateDefault (object item);
abstract member CreateDefault : obj -> 'Visual

Parameters

item
System.Object

The user object

Returns

TVisual

An instance of the TVisual class.

Implements

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