O'Reilly logo

XAML Developer Reference by Ashish Ghoda, Mamta Dalal

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 3. XAML Properties and Events

In this chapter:

As discussed in Chapter 2, declaring an object element in XAML maps it to the corresponding CLR type. The process is similar to creating an object instance of that CLR type by using the default constructor in code-behind. With that said, setting an attribute in an object element is the equivalent of either setting a property or creating an event handler for that object in code-behind. In XAML you can also use the attribute syntax to define attached properties and attached events, which are properties and events not actually defined in the mapped CLR type.

This chapter explores the different types of property and event systems available as part of WPF and Silverlight ...

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