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

Get XAML Developer Reference 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.