Chapter 4. Using Standard Controls

In this chapter we will cover:

  • Working with text
  • Using content controls
  • Displaying images
  • Creating tooltips
  • Creating a list of items
  • Creating a standard menu
  • Creating a context menu
  • Selecting options with checkboxes and radio buttons
  • Manipulating tab order and focus

Introduction

Every UI framework must provide a set of standard controls, such as text boxes, buttons, and list boxes. WPF is no different.

The difference between elements and controls is not that important in practice, but it is useful to understand the distinction.

Elements derive from FrameworkElement (directly or indirectly), but not from Control. They have a certain look and provide some functionality that is customizable, mostly by changing properties. For ...

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