O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

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 5. Data Binding

In the preceding two chapters, we looked at XAML and the way user interface elements are constructed and laid out with the help of the layout panels. The user interface, however, is just the first step. Some data must be set upon the UI to make up an application.

There are several ways of getting data to the controls. The simplest, perhaps, and most direct is the one we've been using so far; getting a reference to a control and changing the relevant property. If we needed some text to be placed in a TextBox, we would simply change its Text property when needed.

This certainly works and when working with the Win32 API for UI purposes, there is really no other way. But this is tedious at best, and involves an unmanageable maintenance ...

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