Class DataTemplateSelector

    Definition

    Namespace:
    Tizen.NUI.Binding
    Assembly:
    Tizen.NUI.dll

    Selects DataTemplate objects by data type and container.

    public abstract class DataTemplateSelector : DataTemplate
    Inheritance
    object
    ElementTemplate
    DataTemplate
    DataTemplateSelector

    Methods

    View Source

    OnSelectTemplate(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.

    View Source

    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.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX