[NUI][Xaml] Fix issue that BindingContext can't be used in C# code
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / ViewPublicMethods.cs
index 7560872..ba203dc 100755 (executable)
@@ -166,7 +166,8 @@ namespace Tizen.NUI.BaseComponents
                     };
                     ChildAdded(this, e);
                 }
-                BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
+
+                AddChildBindableObject(child);
             }
         }
 
@@ -183,7 +184,8 @@ namespace Tizen.NUI.BaseComponents
 
             if (child.GetParent() != this)
             {
-                throw new System.InvalidOperationException("You have deleted a view that is not a child of this view.");
+                //throw new System.InvalidOperationException("You have deleted a view that is not a child of this view.");
+                Tizen.Log.Error("NUI", "You have deleted a view that is not a child of this view.");
             }
 
             bool hasLayout = (layout != null);
@@ -252,7 +254,7 @@ namespace Tizen.NUI.BaseComponents
             }
             else
             {
-                Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
+                Tizen.Log.Error("NUI", "swigCPtr of view is already disposed.");
             }
             return ret;
         }
@@ -301,6 +303,11 @@ namespace Tizen.NUI.BaseComponents
         /// <since_tizen> 3 </since_tizen>
         public void Show()
         {
+            if ((AccessibilityCalculateStates() & AccessibilityStates.Modal) != 0)
+            {
+                RegisterPopup();
+            }
+
             SetVisible(true);
         }
 
@@ -316,6 +323,11 @@ namespace Tizen.NUI.BaseComponents
         public void Hide()
         {
             SetVisible(false);
+
+            if ((AccessibilityCalculateStates() & AccessibilityStates.Modal) != 0)
+            {
+                RemovePopup();
+            }
         }
 
         /// <summary>
@@ -626,17 +638,6 @@ namespace Tizen.NUI.BaseComponents
                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-
-
-        /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public Transition GetTransition(string transitionName)
-        {
-            Transition trans = null;
-            transDictionary.TryGetValue(transitionName, out trans);
-            return trans;
-        }
-
         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
         public void ObjectDump()