X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FTemplate%2FDataTemplate.cs;h=54664da18f6ecd45bf9518d8654e1e274b5e5213;hb=cd2eb142246ef8d9c2d19b53c81ef08ef1535fa7;hp=27ce4adbaeeed227452328fc8be19d0aa9eca630;hpb=e19c90dd4203afd4739e1e18d2517c8d4be55cf7;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/Template/DataTemplate.cs b/src/Tizen.NUI/src/public/Template/DataTemplate.cs index 27ce4ad..54664da 100755 --- a/src/Tizen.NUI/src/public/Template/DataTemplate.cs +++ b/src/Tizen.NUI/src/public/Template/DataTemplate.cs @@ -21,13 +21,16 @@ using System.Collections.Generic; namespace Tizen.NUI.Binding { - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// A template for multiple bindings, commonly used by RecylerView and CollectionView. + /// + /// 9 public class DataTemplate : ElementTemplate { /// /// Base constructor. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public DataTemplate() { } @@ -36,7 +39,7 @@ namespace Tizen.NUI.Binding /// Base constructor with specific Type. /// /// The Type of content. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public DataTemplate(Type type) : base(type) { } @@ -45,18 +48,31 @@ namespace Tizen.NUI.Binding /// Base constructor with loadTemplate function. /// /// The function of loading templated object. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public DataTemplate(Func loadTemplate) : base(loadTemplate) { } - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// Gets a dictionary of bindings, indexed by the bound properties. + /// + /// 9 public IDictionary Bindings { get; } = new Dictionary(); - [EditorBrowsable(EditorBrowsableState.Never)] + + /// + /// Returns a dictionary of property values for this DataTemplate, indexed by property. + /// + /// 9 public IDictionary Values { get; } = new Dictionary(); - [EditorBrowsable(EditorBrowsableState.Never)] + + /// + /// Sets the binding for property. + /// + /// The property to which to bind. + /// The binding to use. + /// 9 public void SetBinding(BindableProperty property, BindingBase binding) { if (property == null) @@ -68,6 +84,12 @@ namespace Tizen.NUI.Binding Bindings[property] = binding; } + /// + /// Sets the value of property. + /// + /// The property to set. + /// The new value. + /// 9 [EditorBrowsable(EditorBrowsableState.Never)] public void SetValue(BindableProperty property, object value) {