3. Controls

CHAPTER 2 DESCRIBED how an application is built, the main UI components, application services, and options for hosting the application. Although the UI of an application is built from windows, user controls, and pages, the top-level parts of the UI are built out of smaller components, controls.

For as long as there have been UI toolkits, there have been controls. Whether they were called widgets, gadgets, VBXs, OCXs, components, CWnds, elements, or another name, there has always been some notion of a component that encapsulates a particular behavior, object model, and display. Windows Presentation Foundation is no exception.

In this chapter we can begin to dig into controls, which are the real meat of WPF. To start, we will walk through ...

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