In this chapter we explored the concept of data binding and how it is employed in Windows Presentation Foundation. We saw how bound classes need to implement the
INotifyPropertyChanged interface for bound properties to automatically synchronize. We saw how the binding is managed by a
Binding class instance, and how we can customize its
Source properties in XAML to modify the binding behavior. We bound simple controls like
<CheckBox> and more complex elements like
<ListBox>. We also explored how to bind enumerations to controls. And we explored the use of templates like
ControlTemplate to modify WPF controls.
The full example project discussed in this chapter can be found at https://github.com/ksu-cis/DataBindingExample .