XAML namespace is an extension of XML namespace and conventionally written as xmlns in XAML pages. It is used in all the XAML-related technologies to refer to the assemblies and/or namespaces within the XAML page.
Till now, we have seen how to add the XMLNS attribute entry in XAML to refer to custom controls, User Controls, converters, behaviors, and so on, but all that used an assembly/namespace system to define the entry.
For local declaration, we use the clr-namespace:[namespace] format, as shown in the following code:
xmlns:localBehaviors="clr-namespace:CH05.NamespaceCustomizationDemo.Behaviors"
For declarations from a different assembly, we use the clr-namespace:[namespace];assembly=[assembly] format, as shown in the following code:
xmlns:behaviors="clr-namespace:CH05.NamespaceCustomizationLibraryDemo.Behaviors;assembly=CH05.NamespaceCustomizationLibraryDemo"
In this recipe, we will learn how to customize the namespace to give...