Working with Data Bindings

In this chapter, we will cover the following recipes:

  • Working with CLR properties and UI notifications
  • Working with dependency properties
  • Working with attached properties
  • Data binding to an object
  • Data binding to a collection
  • Element-to-element data binding
  • Sorting data in a DataGrid control
  • Grouping data in a DataGrid control
  • Filtering data in a DataGrid control
  • Using static bindings
  • Using value converters
  • Using multi-value converters

Introduction

Data binding is a technique to establish a connection between the UI of the application and the business logic in order to have proper data synchronization between them. Though you can directly access UI controls from code behind to update their content, data binding ...

Get Windows Presentation Foundation Development Cookbook 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.