O'Reilly logo

Pro WPF and Silverlight MVVM: Effective Application Development with Model-View-ViewModel by Gary McLean Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required