O'Reilly logo

Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition by Matthew MacDonald

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

Understanding Content Controls

In Chapter 1, you took a look at the class hierarchy that's at the core of WPF. You also considered the difference between elements (which include everything you'll place in a WPF window) and controls (which are more specialized elements that derive from the System.Windows.Controls.Control class).

In the world of WPF, a control is generally described as an element that can receive focus and accept user input, such as a text box or a button. However, the distinction is sometimes a bit blurry. The ToolTip is considered to be a control because it appears and disappears depending on the user's mouse movements. The Label is considered to be a control because of its support for mnemonics (shortcut keys that transfer ...

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