[XamlBuild] Support use root node inheirt nest type
authorFang Xiaohui <xiaohui.fang@samsung.com>
Thu, 24 Mar 2022 02:45:00 +0000 (10:45 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 24 Mar 2022 10:59:29 +0000 (19:59 +0900)
src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs

index b20c7f0..eacd95d 100755 (executable)
@@ -529,6 +529,10 @@ namespace Tizen.NUI.Xaml.Build.Tasks
             Func<string, string> getNamespaceOfPrefix = null)
         {
             var type = xmlType.Name;
+            if (type.Contains("-"))
+            {
+                type = type.Replace('-', '.');
+            }
             var ns = GetClrNamespace(xmlType.NamespaceUri, xmlType.Name);
             if (ns != null)
                 type = $"{ns}.{type}";