A comment on this post is asking whether it is possible to create bindings outside of a template. The point of doing that is that you don?t necessarily want to render a template just to set-up a few bindings. Well, bindings are really implemented by a component, Sys.Binding, and a markup extension, which instantiates that component through the convenient {binding foo} syntax. While the markup extension is only understood by the template engine, the component can be instantiated like any other component, through $create or declaratively (thanks to Dave for pointing me to how this can be done). Here is a sample page where two bindings are created (imperatively and declaratively) to bind a span?s text (imperatively) and an input?s value (declaratively...(read more) ...
Go to the complete details ...