Applies to: Windows Store apps only
Binds values from the specified data context to elements that are descendants of the specified root element and have declarative binding attributes (data-win-bind and data-win-bindsource).
Warning Do not attempt to bind data to the ID of an HTML element.
WinJS.Binding.declarativeBind(dataContext, rootElement, skipRoot, bindingCache).done( /* Your success and error handlers */ );
The object to use for default data binding. Each element (or one of its children) may contain a data-win-bindsource attribute that overrides the dataContext.
The element at which to start traversing to find elements to bind to. If this parameter is omitted, the entire document is searched.
If true, the elements to be bound skip the specified root element and include only the children.
The cached binding data.
Return valueType: Promise
A promise that completes when each item that contains binding declarations has been processed and the update has started.
For more information about using declarative binding, see the topic Quickstart: binding data and styles to HTML elements and the Declarative Binding sample at Windows Store app samples.
Build date: 9/6/2012