XWT binding provides a simple and consistent way for application to present and interact with UI elements.
Control Binding is the mechanism to establish a connection between two UI controls. If the control binding has the correct settings, then when the property value of the target controls is changed, the controls are bound to the target control reflect changes automatically. For example, ***************sample***************.
In XWT, you establish a binding using the Binding object. This section discusses how to set up a control binding.
There are four necessary components: binding target, target property, binding source, and a path to the source value to use. Consider the following example, Button1 is the target object, the target property is the 'top' property, *****************.
********code***********
Notice that in the above example, in which the binding source object is Button1. There provide an ElementName property to specify the source object.