Chapter 6. Content and Controls
WPF is a UI framework that excels in displaying visual content. In previous frameworks, different UI controls were specialized for particular purposes, and their visual presentations were more or less fixed. For example, a
Label in the Windows Forms framework was a piece of static text. A
Button was usually labeled with text but could also paint its background with an image.
But why should the content of your button be limited to either text or an image? Why shouldn't you be allowed to have video on your button—or an animation? Or why should it be so difficult to include images or individually colored backgrounds in the items of a list box?
In answer to these questions, the designers of WPF said—"it ...