[Xaml] Fix issue that the Xaml element which has the created-in-csharp parent will...
authorFang Xiaohui <xiaohui.fang@samsung.com>
Thu, 14 Apr 2022 00:38:06 +0000 (08:38 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 14 Apr 2022 07:48:45 +0000 (16:48 +0900)
src/Tizen.NUI/src/public/EXaml/EXamlExtensions.cs

index c1fb942..950e38d 100755 (executable)
@@ -56,10 +56,11 @@ namespace Tizen.NUI.EXaml
                 {
                     var child = container.Children[i];
 
+                    DisposeXamlElements(child);
+
                     if (child.IsCreateByXaml)
                     {
                         child.Unparent();
-                        DisposeXamlElements(child);
                         child.Dispose();
                     }
                 }