Objectives:
- Comparing Binding Properties and an alternate approach.
- Two Label controls are synchronized with two Text Boxes, one
with Event and Other with Data binding, respectively.
- A
source object is the object that contains the data, and the
target object is a control that displays that data
- Each binding event typically has these four components:
- Target Object : If a binding target object, e.g. Text
Box o Label
- Target property: Text property of a Text Box. The target
property must be a dependency property. This also means that you
cannot bind a field.

- Binding source : The data source
- Binding source types
- CLR objects : may bind to
public properties, indexers of CLR ICustomTypeDescriptor
- dynamic object : can bind to
the objects that implements IDynamicMetaObjectProvider
- ADO.Net objects, the objects
that implements I Binding
- XML Objects
- Dependency object :
- a
Path to the value in the binding source to use.
- Binding Modes :
- One Way : Read Only, Default, and does not change the data
source
- Two Way : Read & Write, change in target data will change
the source
- One Time: Binds one time from source to target and does not
respond to change notification.
Code :
MainWindow.xaml.txt,
MainWindow.xaml.cs.txt
|