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