Class DataTemplate

    Definition

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

    A template for multiple bindings, commonly used by RecylerView and CollectionView.

    public class DataTemplate : ElementTemplate, IDataTemplate
    Inheritance
    object
    ElementTemplate
    DataTemplate
    Derived
    DataTemplateSelector
    Implements
    IDataTemplate

    Constructors

    View Source

    DataTemplate()

    The default constructor of DataTemplate class.

    Declaration
    public DataTemplate()
    View Source

    DataTemplate(Func<object>)

    Base constructor with loadTemplate function.

    Declaration
    public DataTemplate(Func<object> loadTemplate)
    Parameters
    Type Name Description
    Func<><object> loadTemplate

    The function of loading templated object.

    View Source

    DataTemplate(Type)

    Base constructor with specific Type.

    Declaration
    public DataTemplate(Type type)
    Parameters
    Type Name Description
    Type type

    The Type of content.

    Properties

    View Source

    Bindings

    Gets a dictionary of bindings, indexed by the bound properties.

    Declaration
    public IDictionary<BindableProperty, BindingBase> Bindings { get; }
    Property Value
    Type Description
    IDictionary<, ><BindableProperty, BindingBase>
    View Source

    Values

    Returns a dictionary of property values for this DataTemplate, indexed by property.

    Declaration
    public IDictionary<BindableProperty, object> Values { get; }
    Property Value
    Type Description
    IDictionary<, ><BindableProperty, object>

    Methods

    View Source

    SetBinding(BindableProperty, BindingBase)

    Sets the binding for property.

    Declaration
    public void SetBinding(BindableProperty property, BindingBase binding)
    Parameters
    Type Name Description
    BindableProperty property

    The property to which to bind.

    BindingBase binding

    The binding to use.

    View Source

    SetValue(BindableProperty, object)

    Sets the value of property.

    Declaration
    public void SetValue(BindableProperty property, object value)
    Parameters
    Type Name Description
    BindableProperty property

    The property to set.

    object value

    The new value.

    Implements

    IDataTemplate

    Extension Methods

    DataTemplateExtensions.CreateContent(DataTemplate, object, BindableObject)
    DataTemplateExtensions.SelectDataTemplate(DataTemplate, object, BindableObject)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX