예제 #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!");
     }
 }
예제 #2
0
 public static RedwoodBindableControl WithBinding(this RedwoodBindableControl control, RedwoodProperty property, BindingExpression expression)
 {
     control.SetBinding(property, expression);
     return control;
 }