May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Binding Markup ExtensionYou perform data-binding between a user control and a data source via the Binding XAML markup extension. Such an extension requires specifying two properties: ElementName, which is the source item name and Path that is the property containing the actual data to bind, whose name must be exposed by the object assigned to ElementName. The following example, in which you have to substitute to the first TextBox in the earlier example, shows how to bind the context of a TextBox to the value of a Slider control so that when the user moves the selector, the slider value is reflected into the TextBox:
Binding has to be applied to the property that will present bound data, in this case Text. If you ...
Read now
Unlock full access