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

In this chapter we will cover the following:

  • Creating custom type instances in XAML
  • Creating a dependency property
  • Using an attached property
  • Creating an attached property
  • Accessing a static property in XAML
  • Creating a custom markup extension
  • Handling routed events

Introduction

Any attempt at mastering a technology, any technology, requires a good understanding of its foundations. This understanding makes it possible to grasp the more complex aspects of that technology; Windows Presentation Foundation (WPF) is no different.

In this first chapter, we'll discuss recipes concerning the very foundations of WPF what makes it tick and also along the way, what makes it unique.

XAML

The first noticeable facet of WPF is XAML (eXtensible Markup ...

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