[This documentation is preliminary and is subject to change.]
Applies to: Metro style apps only
Binds a property of an element to a property of a data source.
Syntax
<element data-win-bind="elementProperty1 : dataSourceProperty1; elementProperty2: dataSourceProperty2" />
Property value
Type: String
A string with the following format:
elementPropertyName : dataSourcePropertyName
where elementPropertyName is the name of a property on the host element, and dataSourcePropertyName is the name of a property of the data source. When the Template is used, the data source's property value is used to set the element's property.
Separate multiple sets of element/data source property pairs with a semicolon.
Examples
For more information about using this attribute, see the topic Quickstart: binding data and styles to HTML elements and the Declarative Binding sample.
For an example showing how to use an item template with a ListView, see the Add a ListView quickstart.
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Library |
|
See also
Build date: 5/22/2012
