DataTemplateSelector.SelectTemplate Method

Definition

Overloads

SelectTemplate(Object)

Returns a specific DataTemplate for a given item.

SelectTemplate(Object, DependencyObject)

Returns a specific DataTemplate for a given item and container.

SelectTemplate(Object)

Returns a specific DataTemplate for a given item.

C#
[Windows.Foundation.Metadata.Overload("SelectTemplateForItem")]
public DataTemplate SelectTemplate(object item);

Parameters

item
Object

The item to return a template for.

Returns

The template to use for the given item and/or container.

Attributes

See also

Applies to

Windows App SDK 1.6 and other versions
Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

SelectTemplate(Object, DependencyObject)

Returns a specific DataTemplate for a given item and container.

C#
[Windows.Foundation.Metadata.Overload("SelectTemplate")]
public DataTemplate SelectTemplate(object item, DependencyObject container);

Parameters

item
Object

The item to return a template for.

container
DependencyObject

The parent container for the templated item.

Returns

The template to use for the given item and/or container.

Attributes

See also

Applies to

Windows App SDK 1.6 and other versions
Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6