[NUI] Reset XamlParser's xamlns list whenever it starts to parse
authorJiyun Yang <ji.yang@samsung.com>
Tue, 22 Jun 2021 08:06:52 +0000 (17:06 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 23 Jun 2021 08:25:09 +0000 (17:25 +0900)
Previously, XamlParser referenced a xamlns list that is created based on the root assembly of previously parsed xaml file.
That leads wrong result of searching types for the next xaml parsing.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/Xaml/XamlParser.cs

index 83f26cd..45e0804 100755 (executable)
@@ -63,6 +63,9 @@ namespace Tizen.NUI.Xaml
 
         public static void ParseXaml(RootNode rootNode, XmlReader reader)
         {
+            // Reset xmlnsDefinitions to re-gather them for the new assembly.
+            s_xmlnsDefinitions = null;
+
             IList<KeyValuePair<string, string>> xmlns;
             var attributes = ParseXamlAttributes(reader, out xmlns);
             var prefixes = PrefixesToIgnore(xmlns);