/// <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)); }
private static Type GetByDefinition(string xamlNamespace, string componentName) { var localComponentName = GetLocalComponentName(componentName); return(XmlnsDefinitionAttribute.GetComponentType(xamlNamespace, localComponentName)); }