I\'m a bit tired of having to declare an xmlns in every xaml file and having to use prefixes for my custom controls. Is it possible to map a clr namespace to \"http://schema
Unfortunately, you cannot use controls mapped to a Xaml namespace defined by XmlnsDefinition
, if the controls are defined in the same assembly. Different assemblies work fine though. You'll have to use the clr-namespace
definition for this.
Why would you want to add your controls to the Xaml default namespace? Don't do this. It's like using the System
namespace for your classes because you don't want to add using
directives for their namespaces.