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#Copypublic class DataTemplate : ElementTemplate, IElement, IDataTemplate
- Inheritance
- Derived
Constructors
Declaration
C#Copypublic DataTemplate()
API Level: 9
Declaration
C#Copypublic DataTemplate(Func<object> loadTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | loadTemplate | The function of loading templated object. |
API Level: 9
Declaration
C#Copypublic DataTemplate(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The Type of content. |
API Level: 9
Properties
Declaration
C#Copypublic IDictionary<BindableProperty, BindingBase> Bindings { get; }
Property Value
Type | Description |
---|---|
IDictionary<Tizen.NUI.Binding.BindableProperty, Tizen.NUI.Binding.BindingBase> |
API Level: 9
View Source
Values
Returns a dictionary of property values for this DataTemplate, indexed by property.
Declaration
C#Copypublic IDictionary<BindableProperty, object> Values { get; }
Property Value
Type | Description |
---|---|
IDictionary<Tizen.NUI.Binding.BindableProperty, System.Object> |
API Level: 9
Methods
Declaration
C#Copypublic 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. |