Stéphane Louge has a blog post that gives some tips for creating the
WPF's like {x:Static} MarkupExtension using
Silverlight 5.
Source: Stef's Blog
Silverlight 5 Beta now provides the MarkupExtension base class. By implementing the ProvideValue (IServiceProvider) method you can define a customized MarkupExtension, which can be interpreted by the Silverlight 5 XAML parser.
This allows us to perform tasks that are not possible, rather wordy or too complex to implement.
For example we can now create behaviors similar as the ones present in WPF like {x:Type ...}, {x:Static ...}, etc.
In this post we will see how to achieve an equivalent of WPF's {x:Static} MarkupExtension.
Note: This blog post is in French!