Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <summary>
 /// 节点映射的组件类型
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 internal static Type MapComponentType(this HtmlNode node)
 {
     return(ComponentTypeLocator.Locate(node) ?? HtmlElement.Type);
 }
Esempio n. 3
0
 protected override object ConvertTo(string value)
 {
     return(ComponentTypeLocator.Locate(value));
 }