I'm creating a markup extension in Visual Studio 2010 that will be used for localization. As part of this, I want to be able to pass an xml namespace prefix from the xaml and have
the extension translate it to the full namespace string. This is possible using IXamlNamespaceResolver, however this only works for me at runtime and not from the VS2010 designer, which I need so that I can preview how the UI will look for different
locations. I have a workaround where I set the namespace as a string and pass that instead of using xmlns, but I'd like to avoid doing that.
Here an example of what I want in the MarkupExtension.ProvideValue method: