private void ApplyBinding(BindingDef binding, IBindingContainer bindingContainer) { TargetProperty property = binding.ResolveAsTarget(this.bindingContainer); if (property != null) { object value = property.Value; SetProperty(binding, value); } }
private void ExecuteCommandBind(BindingDef binding) { TargetProperty target = binding.ResolveAsTarget(this.BindingContainer); ExecuteCommandBind(target.OwningControl, binding); }