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 8. Styles, Triggers, and Control Templates

In this chapter we will cover the following:

  • Creating and using styles
  • Applying a style automatically
  • Creating a property trigger
  • Using data triggers
  • Creating an event trigger
  • Creating a multi trigger
  • Using behaviors
  • Replacing the control template of a progress bar
  • Replacing the control template of a scroll bar
  • Customizing selection in a Selector control

Introduction

Consistency in a user interface is an important trait; there are many facets of consistency, one of which is the consistent look and feel of controls. For example, all buttons should look roughly the same similar colors, the same — margins, and so on.

Styles are objects that hold property setters to provide a way to apply a bunch of settings as ...

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