public virtual XamlDirective GetXamlDirective(string xamlNamespace, string name) { if (xamlNamespace == null) { throw new ArgumentNullException("xamlNamespace"); } if (name == null) { throw new ArgumentNullException("name"); } if (XamlLanguage.XamlNamespaces.Contains(xamlNamespace)) { return(XamlLanguage.LookupXamlDirective(name)); } if (XamlLanguage.XmlNamespaces.Contains(xamlNamespace)) { return(XamlLanguage.LookupXmlDirective(name)); } return(null); }