2 using System.Collections.Generic;
5 namespace Tizen.NUI.Binding
7 [ContentProperty("Setters")]
8 [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")]
9 [AcceptEmptyServiceProvider]
10 internal sealed class DataTrigger : TriggerBase, IValueProvider
12 public DataTrigger([TypeConverter(typeof(TypeTypeConverter))] [Parameter("TargetType")] Type targetType) : base(new BindingCondition(), targetType)
16 public BindingBase Binding
18 get { return ((BindingCondition)Condition).Binding; }
21 if (((BindingCondition)Condition).Binding == value)
24 throw new InvalidOperationException("Can not change Binding once the Trigger has been applied.");
26 ((BindingCondition)Condition).Binding = value;
31 public new IList<Setter> Setters
33 get { return base.Setters; }
38 get { return ((BindingCondition)Condition).Value; }
41 if (((BindingCondition)Condition).Value == value)
44 throw new InvalidOperationException("Can not change Value once the Trigger has been applied.");
46 ((BindingCondition)Condition).Value = value;
51 object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
53 //This is no longer required