/// <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; }
/// <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)); }