Example #1
0
        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);
                }
            }
        }
Example #2
0
 internal override void TearDown(BindableObject bindable)
 {
     bindable.RemoveBinding(boundProperty);
     bindable.ClearValue(boundProperty);
 }