Markup Extensions

Markup extensions are a described in the msdn documentation here. At the moment, custom markup extensions are not supported by Silverlight, so the features described below are only available in WPF.


The ResolveExtension allows a developer to resolve a service from the dependency injection container directly through Xaml. This can be quite handy for resolving commands, controllers or presenters that need to be bound to the UI without having to manually write code for this in the code behind file. The default parameter for the ResolveExtension is a type used to look up the desired service. You can also use the named parameter, Key, to look up by key or a combination of the two, Type and Key, if your configured container supports this feature.

Last edited Oct 23, 2009 at 6:54 PM by EisenbergEffect, version 3