Editar

Compartir a través de


ItemContainerTemplateSelector.SelectTemplate(Object, ItemsControl) Method

Definition

When overridden in a derived class, returns an ItemContainerTemplate based on custom logic.

public:
 virtual System::Windows::DataTemplate ^ SelectTemplate(System::Object ^ item, System::Windows::Controls::ItemsControl ^ parentItemsControl);
public virtual System.Windows.DataTemplate SelectTemplate (object item, System.Windows.Controls.ItemsControl parentItemsControl);
abstract member SelectTemplate : obj * System.Windows.Controls.ItemsControl -> System.Windows.DataTemplate
override this.SelectTemplate : obj * System.Windows.Controls.ItemsControl -> System.Windows.DataTemplate
Public Overridable Function SelectTemplate (item As Object, parentItemsControl As ItemsControl) As DataTemplate

Parameters

item
Object

The object for which to select the template.

parentItemsControl
ItemsControl

The container for the items.

Returns

The template. The default implementation returns null.

Applies to