From: Fang Xiaohui Date: Thu, 24 Mar 2022 02:45:00 +0000 (+0800) Subject: [XamlBuild] Support use root node inheirt nest type X-Git-Tag: accepted/tizen/unified/20231205.024657~1072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a7de2b0d230a0fef15194b5f74ae9dde224b089;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [XamlBuild] Support use root node inheirt nest type --- diff --git a/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs b/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs index d725303..49e7efd 100755 --- a/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs +++ b/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs @@ -524,6 +524,10 @@ namespace Tizen.NUI.Xaml.Build.Tasks Func 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}";