I am developing a custom WPF controls library which includes controls converters, triggers and behaviors distributed among appropriate namespaces. I know how to define XmlnsDefinition, and XmlnsPrefix assembly information and using that extensively. Hwta I want to do is to devine XmlnsPrefix for each namespace inside same assembli so ForExample if a have declaration like this
[assembly: XmlnsPrefix("http://schemas.taicodev.com/winfx/2010/xaml/presentation", "TaicoControl")]
[assembly: XmlnsDefinition("http://schemas.taicodev.com/winfx/2010/xaml/presentation", "CuratioCMS.Client.UI.Converters")]
[assembly: XmlnsDefinition("http://schemas.taicodev.com/winfx/2010/xaml/presentation", "CuratioCMS.Client.UI.Controls")]
I want to leave TaicoControl but for Converters use TaicoConverter prefix automatically
is that possible and how can achieve that without partitioning assembly in many different assemblies?
If you want 2 different CLR namespaces to use 2 different xmlns prefixes then you need to define the xmlnsdefinition for each CLR namespace such that it uses a different URI and then define an xmlnsprefix for each unique URI.