示例#1
0
        /// <summary>
        /// 根据xmlns前缀,获取程序集信息
        /// </summary>
        /// <param name="prefixName"></param>
        /// <returns></returns>
        public static Assembly GetAssembly(string prefixName)
        {
            var xmlns         = XmlnsDictionary.Current;
            var xamlNamespace = xmlns.GetXamlNamespaceByPrefixName(prefixName);

            return(XmlnsDefinitionAttribute.GetAssembly(xamlNamespace));
        }
示例#2
0
        private static Type GetByDefinition(string xamlNamespace, string componentName)
        {
            var localComponentName = GetLocalComponentName(componentName);

            return(XmlnsDefinitionAttribute.GetComponentType(xamlNamespace, localComponentName));
        }