2 using System.ComponentModel;
3 using Tizen.NUI.Binding;
5 namespace Tizen.NUI.Xaml
7 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
8 [EditorBrowsable(EditorBrowsableState.Never)]
9 [ContentProperty("Path")]
10 [AcceptEmptyServiceProvider]
11 public sealed class TemplateBindingExtension : IMarkupExtension<BindingBase>
13 internal TemplateBindingExtension()
15 Mode = BindingMode.Default;
16 Path = Tizen.NUI.Binding.Binding.SelfPath;
19 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
20 [EditorBrowsable(EditorBrowsableState.Never)]
21 public string Path { get; set; }
23 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
24 [EditorBrowsable(EditorBrowsableState.Never)]
25 public BindingMode Mode { get; set; }
27 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public IValueConverter Converter { get; set; }
31 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public object ConverterParameter { get; set; }
35 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public string StringFormat { get; set; }
39 BindingBase IMarkupExtension<BindingBase>.ProvideValue(IServiceProvider serviceProvider)
41 return new TemplateBinding(Path, Mode, Converter, ConverterParameter, StringFormat);
44 object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
46 return (this as IMarkupExtension<BindingBase>).ProvideValue(serviceProvider);