Exemplo n.º 1
0
 private static void EnsureValidBindingType(BindingExpression binding)
 {
     if (!(binding is ValueBindingExpression))
     {
         throw new Exception("Only {value: ...} bindings are supported in <rw:RouteLink Param-xxx='' /> attributes!");
     }
 }
Exemplo n.º 2
0
 public static RedwoodBindableControl WithBinding(this RedwoodBindableControl control, RedwoodProperty property, BindingExpression expression)
 {
     control.SetBinding(property, expression);
     return control;
 }