From 0d128c0b8b7a7566fd91b6d587972e94c9b98104 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Tue, 22 Jun 2021 17:06:52 +0900 Subject: [PATCH] [NUI] Reset XamlParser's xamlns list whenever it starts to parse 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 --- src/Tizen.NUI/src/internal/Xaml/XamlParser.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs b/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs index 83f26cd..45e0804 100755 --- a/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs @@ -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> xmlns; var attributes = ParseXamlAttributes(reader, out xmlns); var prefixes = PrefixesToIgnore(xmlns); -- 2.7.4