In this chapter, we'll investigate the data binding syntax that is used to connect our data sources to our UI controls. We'll examine how to declare Dependency Properties, along with all of the various options that we have when doing that. We'll find out about the scope of declared bindings and unravel the finer details of data templates. Let's start at the beginning.
It is the data binding in the WPF that enables it to work so well with the MVVM pattern. It provides the connection for two-way communication between the View and the View Models components. Yet this abstraction can often lead to confusion and make tracking down problems more difficult than when using traditional methods of UI to business logic communication.
As data binding is such an important part of the MVVM pattern, we'll cover this topic thoroughly, from the basics to advanced concepts. We'll ensure that we are able to fulfil any binding requirements that we may receive.