DataTemplateSelector.SelectTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
/// [Windows.Foundation.Metadata.Overload("SelectTemplateForItem")]
DataTemplate SelectTemplate(IInspectable const& item);
[Windows.Foundation.Metadata.Overload("SelectTemplateForItem")]
public DataTemplate SelectTemplate(object item);
function selectTemplate(item)
Public Function SelectTemplate (item As Object) As DataTemplate
Parameters
- item
-
Object
IInspectable
The item to return a template for.
Returns
The template to use for the given item and/or container.
- Attributes
See also
Applies to
SelectTemplate(Object, DependencyObject)
Returns a specific DataTemplate for a given item and container.
/// [Windows.Foundation.Metadata.Overload("SelectTemplate")]
DataTemplate SelectTemplate(IInspectable const& item, DependencyObject const& container);
[Windows.Foundation.Metadata.Overload("SelectTemplate")]
public DataTemplate SelectTemplate(object item, DependencyObject container);
function selectTemplate(item, container)
Public Function SelectTemplate (item As Object, container As DependencyObject) As DataTemplate
Parameters
- item
-
Object
IInspectable
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