public void CopyBindingRelationShip(BindableObject other) { if (null == other) { return; } foreach (var property in properties) { RemoveBinding(property.Key); } foreach (var property in other.properties) { if (null != property.Value.Binding) { var binding = property.Value.Binding; other.RemoveBinding(property.Key); SetBinding(property.Key, binding); } } }
internal override void TearDown(BindableObject bindable) { bindable.RemoveBinding(boundProperty); bindable.ClearValue(boundProperty); }