コード例 #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();
 }
コード例 #2
0
ファイル: TestExtensions.cs プロジェクト: holajan/dotvvm
 public static DotvvmBindableControl WithBinding(this DotvvmBindableControl control, DotvvmProperty property, BindingExpression expression)
 {
     control.SetBinding(property, expression);
     return control;
 }