Data binding

Bindings are established between a widget and an object. Binding provides real-time information for presentation.

All widgets may be bound to data sources using data binding. Bindings are established between a widget and an object using an ORD. A single binding consists of a single widget–object relationship. A binding’s ORD property identifies the location of the object that updates and animates the widget.

For example, the most common type of binding, the value binding, provides some of the typical functions that are associated with building real-time information for presentation as both text and graphics. This includes support for mouse-over status and right-click actions. Additionally it provides a mechanism to animate any property of its parent widget using converters that convert the target object into property values. 45. Widget data binding shows a value binding to a fan widget as viewed in the Edit Binding dialog box.



Figure 45.   Widget data binding

Image

46. Widget with three bindings illustrates the object-to-widget property binding concept. In this example, a widget has three separate data bindings. This means that each binding is coming from a different object and therefore each binding has a different ORD that defines its binding. Each binding provides access to an object’s values so that they may be used, as required, to animate the widget properties.



Figure 46.   Widget with three bindings

Image