Summary

Data binding is a powerful feature, although its use is also optional. After all, it’s not hard to write code that ties two objects together. (The incremental rendering feature for ListView and GridView even requires it for its item template!) But writing such code can be tedious, error prone, and a maintenance hassle, especially when managing multiple data sources that might need to be synchronized as items are added, removed, and changed. Such code also tends to tightly couple business logic with the user interface, which makes apps more brittle.

There’s more to data binding than cutting down on the amount of code you need to write, however. Much of the appeal of data binding comes from the fact that the majority of it can be done ...

Get Universal Windows® Apps with XAML and C# Unleashed 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.