Beispiel #1
0
 /// <summary>
 /// Called when bindable object is detached to this trigger.
 /// </summary>
 protected override void OnDetach()
 {
     this.Bindable.RemoveBinding(this.localProperty);
     this.Bindable.ClearValue(this.localProperty);
     this.conditionSource = null;
 }
Beispiel #2
0
 /// <summary>
 /// Called when a bindable object is attached to this trigger.
 /// </summary>
 protected override void OnAttachTo()
 {
     this.conditionSource = this.GetTypedConditionSource <DataCondition>();
     this.Bindable.SetBinding(localProperty, this.conditionSource.Binding.Clone());
     this.CheckIsValid(this.Bindable.GetValue(this.localProperty));
 }