Because the Note property uses optimistic data binding, the Circle control assumes that all changes to the Note property are allowed. The SetNote function simply changes the Note property and notifies the container by calling the BoundPropertyChanged function. This notification displays in Test Container's Notification Log dialog box.
To test the control data binding changes
The Insert Control dialog box appears.
The Circ Control Properties dialog box appears.
The Note property is displayed in the control.
Information about the change to the Note property appears as shown below:
Circ3 Control: Property Change: Note
This kind of information appears every time the BoundPropertyChanged function is called for a bound property. The line shows the type and the property name, and states that the property has changed.
Using the BoundPropertyChanged function to notify the container of changes to bound properties, illustrates the simplest level of data binding.