Chapter 6. Introducing Data Binding

What You’ll Learn in This Hour:

  • The syntax used for binding data

  • The different types and modes of data binding

  • Dependency properties

  • Data Context

In this hour we discuss how to bind data in your WPF application. Data binding is one of the most powerful and exciting features of WPF. Data binding enables you to declare, in a very simple manner, how data will interact with the controls and elements in your UI.

What Is Data Binding?

Data binding is a means of connecting the elements of a user interface with the underlying data that the application is interested in. Data binding is declarative rather than imperative. Declarative means that instead of writing a series of commands to be executed, you describe the relation ...

Get Sams Teach Yourself WPF in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.