public void RegisterBinding(BindingExpression binding)
 {
     if (!RegisteredBindings.ContainsKey(binding.BindingId))
         RegisteredBindings.Add(binding.BindingId, binding);
     //else if (RegisteredBindings[binding.BindingId] != binding) throw new InvalidOperationException();
 }
Exemple #2
0
 public static DotvvmBindableControl WithBinding(this DotvvmBindableControl control, DotvvmProperty property, BindingExpression expression)
 {
     control.SetBinding(property, expression);
     return control;
 }