Class DataTemplate
Definition
- Assembly:
- Tizen.NUI.dll
A template for multiple bindings, commonly used by RecylerView and CollectionView.
public class DataTemplate : ElementTemplate
- Inheritance
- Derived
Constructors
View SourceDataTemplate()
The default constructor of DataTemplate class.
Declaration
public DataTemplate()
DataTemplate(Func<object>)
Base constructor with loadTemplate function.
Declaration
public DataTemplate(Func<object> loadTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult><object> | loadTemplate | The function of loading templated object. |
DataTemplate(Type)
Base constructor with specific Type.
Declaration
public DataTemplate(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The Type of content. |
Properties
View SourceBindings
Gets a dictionary of bindings, indexed by the bound properties.
Declaration
public IDictionary<BindableProperty, BindingBase> Bindings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TKey, TValue><Tizen.NUI.Binding.BindableProperty, Tizen.NUI.Binding.BindingBase> |
Values
Returns a dictionary of property values for this DataTemplate, indexed by property.
Declaration
public IDictionary<BindableProperty, object> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<TKey, TValue><Tizen.NUI.Binding.BindableProperty, object> |
Methods
View SourceSetBinding(BindableProperty, BindingBase)
Sets the binding for property.
Declaration
public void SetBinding(BindableProperty property, BindingBase binding)
Parameters
Type | Name | Description |
---|---|---|
Tizen.NUI.Binding.BindableProperty | property | The property to which to bind. |
Tizen.NUI.Binding.BindingBase | binding | The binding to use. |