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