/// <summary> /// 根据节点名称得到类型 /// </summary> /// <param name="node"></param> /// <returns></returns> private static Type GetComponentTypeByTagName(HtmlNode node) { var xmlns = XmlnsDictionary.Collect(node); var xamlNamespace = xmlns.GetXamlNamespace(node.Name); return(ComponentTypeLocator.Locate(xamlNamespace, node.Name) ?? HtmlElement.Type); }
/// <summary> /// 节点映射的组件类型 /// </summary> /// <param name="node"></param> /// <returns></returns> internal static Type MapComponentType(this HtmlNode node) { return(ComponentTypeLocator.Locate(node) ?? HtmlElement.Type); }
protected override object ConvertTo(string value) { return(ComponentTypeLocator.Locate(value)); }