2 using System.Collections.Generic;
3 using System.ComponentModel;
6 namespace Tizen.NUI.Binding
8 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
9 [EditorBrowsable(EditorBrowsableState.Never)]
10 [ContentProperty("Setters")]
11 [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")]
12 [AcceptEmptyServiceProvider]
13 public sealed class DataTrigger : TriggerBase, IValueProvider
15 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
16 [EditorBrowsable(EditorBrowsableState.Never)]
17 public DataTrigger([TypeConverter(typeof(TypeTypeConverter))][Parameter("TargetType")] Type targetType) : base(new BindingCondition(), targetType)
21 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
22 [EditorBrowsable(EditorBrowsableState.Never)]
23 public BindingBase Binding
25 get { return ((BindingCondition)Condition).Binding; }
28 if (((BindingCondition)Condition).Binding == value)
31 throw new InvalidOperationException("Can not change Binding once the Trigger has been applied.");
33 ((BindingCondition)Condition).Binding = value;
38 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 public new IList<Setter> Setters
42 get { return base.Setters; }
45 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
46 [EditorBrowsable(EditorBrowsableState.Never)]
47 [Obsolete("Deprecated in API9, will be removed in API11. Please use GetValue() instead!")]
50 get { return ((BindingCondition)Condition).Value; }
53 if (((BindingCondition)Condition).Value == value)
56 throw new InvalidOperationException("Can not change Value once the Trigger has been applied.");
58 ((BindingCondition)Condition).Value = value;
63 object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
65 //This is no longer required