#25 – Data Binding Overview

Data binding is a core feature in WPF.  In a typical application, there is a presentation layer that contains the visual controls allowing a user to interact with the application and its data.  Below the presentation layer is typically a business layer, which contains the CLR objects that contain the actual data.  (There may also be a lower data layer where the data is persisted, e.g. a database).

As a user works with an application, there is an expectation that:

  • When data in the CLR objects changes, the changes are reflected in the GUI
  • When a user changes data via the GUI, the changes are replicated in the CLR objects

The data binding model in WPF automates this relationship by binding properties of a CLR object to user interface controls through a Binding object.

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

3 Responses to #25 – Data Binding Overview

  1. Pingback: #158 – When to Create a Custom Dependency Property « 2,000 Things You Should Know About WPF

  2. Pingback: #964 – ListBox Data Binding Basics, Part I | 2,000 Things You Should Know About WPF

  3. Pingback: #1,009 – ComboBox Data Binding Basics, Part I | 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: