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