Custom Markup Extensions
You were introduced to markup extensions in Chapter 2, and learned how a markup extension is essentially a class containing some logic that is evaluated at runtime. Examples of markup extensions built into Silverlight include Binding
, StaticResource
, and x:Null
. However, Silverlight is missing a number of the handy markup extensions that are available in WPF, particularly the x:Static
markup extension that enabled you to bind to a static property, field, constant, and so forth.
A new feature of Silverlight 5 is the ability to create your own custom markup extensions. This feature provides additional flexibility when writing XAML, and can enable you to implement solutions much more elegantly, with less XAML. Let's look ...
Get Pro Business Applications with Silverlight 5 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.