O'Reilly logo

Windows Presentation Foundation 4.5 Cookbook by Pavel Yosifovich

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

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

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