Example #1
0
        public static void FillFromAttributes(this INamespaceRegistry nsReg, IEnumerable <Assembly> assemblies)
        {
            var namespaces = XamlNamespace.DefinedInAssemblies(assemblies);

            foreach (var xamlNamespace in namespaces)
            {
                nsReg.AddNamespace(xamlNamespace);
            }
        }
Example #2
0
 public void AddNamespace(XamlNamespace xamlNamespace)
 {
     NamespaceRegistry.AddNamespace(xamlNamespace);
 }