Chapter 2. DataBinding

The view provides two services to the user: presenting data and interacting with data. The former involves reading data and displaying it in a certain format, whereas the latter implies editing existing or adding new data.

This chapter will focus on the methods available to developers for displaying data in WPF or Silverlight controls. We will attempt to remain entirely declarative, binding the controls to data via XAML.

The Power of DataBinding with XAML

In order to facilitate this new paradigm in databinding, the very lowest-level objects have to be enhanced. The functionality of System.Object subclasses, and the vanilla property system afforded to them, was not enough to support the databinding that WPF's developers had ...

Get Pro WPF and Silverlight MVVM: Effective Application Development with Model-View-ViewModel 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.