Summary

This chapter introduced the new dependency property and routed event systems for XAML and the WPF and Silverlight frameworks.

A dependency property is backed by a regular CLR .NET property and uses the dependency property framework to determine the property value based on various possible sources, including data binding, animation, template resources specified in the XAML, styles, or local values. Dependency properties also provide a value change notification service.

Attached properties are dependency properties that provide dynamic extension of classes without inheritance, and relate child objects to parent objects in a predefined specific context.

Routed events are CLR-type events backed by the RoutedEvent class and processed by the WPF ...

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.