protected virtual void SetValidatorValueBinding(DotvvmBindableObject textBox, BindingExpression valueBindingExpression)
 {
     if (CanValidate)
     {
         textBox.SetBinding(Validator.ValueProperty, valueBindingExpression);
     }
 }
Exemplo n.º 2
0
        public static void CopyProperty(DotvvmBindableObject source, DotvvmProperty sourceProperty, DotvvmBindableObject target, DotvvmProperty targetProperty)
        {
            var binding = source.GetValueBinding(sourceProperty);

            if (binding != null)
            {
                target.SetBinding(targetProperty, binding);
            }
            else
            {
                target.SetValue(targetProperty, source.GetValue(sourceProperty));
            }
        }
 public void AddBinding(string key, IBinding binding)
 {
     control.SetBinding(group.GetDotvvmProperty(key), binding);
 }