Class DataTemplate

Definition

Namespace:
Tizen.NUI.Binding
Assembly:
Tizen.NUI.dll
API Level:
9

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

C#
Copy
public class DataTemplate : ElementTemplate, IElement, IDataTemplate
Inheritance
DataTemplate
Derived
Implements

Constructors

View Source

DataTemplate()

Base constructor.

Declaration
C#
Copy
public DataTemplate()
API Level: 9
View Source

DataTemplate(Func<Object>)

Base constructor with loadTemplate function.

Declaration
C#
Copy
public DataTemplate(Func<object> loadTemplate)
Parameters
Type Name Description
Func<Object> loadTemplate

The function of loading templated object.

API Level: 9
View Source

DataTemplate(Type)

Base constructor with specific Type.

Declaration
C#
Copy
public DataTemplate(Type type)
Parameters
Type Name Description
Type type

The Type of content.

API Level: 9

Properties

View Source

Bindings

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

Declaration
C#
Copy
public IDictionary<BindableProperty, BindingBase> Bindings { get; }
Property Value
Type Description
IDictionary<BindableProperty, BindingBase>
API Level: 9
View Source

Values

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

Declaration
C#
Copy
public IDictionary<BindableProperty, object> Values { get; }
Property Value
Type Description
IDictionary<BindableProperty, Object>
API Level: 9

Methods

View Source

SetBinding(BindableProperty, BindingBase)

Sets the binding for property.

Declaration
C#
Copy
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.

API Level: 9
View Source

SetValue(BindableProperty, Object)

Sets the value of property.

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

The property to set.

Object value

The new value.

API Level: 9

Implements

Extension Methods