Class DataTemplateSelector
Definition
- Assembly:
- Tizen.NUI.dll
Selects DataTemplate objects by data type and container.
public abstract class DataTemplateSelector : DataTemplate
- Inheritance
Methods
View SourceOnSelectTemplate(object, BindableObject)
The developer overrides this method to return a valid data template for the specified item. This method is called by SelectTemplate(Object, BindableObject).
Declaration
protected abstract DataTemplate OnSelectTemplate(object item, BindableObject container)
Parameters
Type | Name | Description |
---|---|---|
object | item | The data for which to return a template. |
BindableObject | container | An optional container object in which the developer may have opted to store DataTemplateSelector objects. |
Returns
Type | Description |
---|---|
DataTemplate | A developer-defined DataTemplate that can be used to display item. |
SelectTemplate(object, BindableObject)
Returns a DataTemplate for item by calling OnSelectTemplate(Object, BindableObject) and verifying its result.
Declaration
public DataTemplate SelectTemplate(object item, BindableObject container)
Parameters
Type | Name | Description |
---|---|---|
object | item | The data for which to return a template. |
BindableObject | container | An optional container object in which the developer may have opted to store DataTemplateSelector objects. |
Returns
Type | Description |
---|---|
DataTemplate | A developer-defined DataTemplate that can be used to display item. |