[NUI] Make BindableObject.IsBound public.
authorhuayong.xu <huayong.xu@samsung.com>
Thu, 6 Jul 2023 10:43:13 +0000 (18:43 +0800)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 22 Aug 2023 06:52:05 +0000 (15:52 +0900)
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs
src/Tizen.NUI/src/public/XamlBinding/Binding.cs

index c93ecfa..c656697 100755 (executable)
@@ -189,7 +189,7 @@ namespace Tizen.NUI.Binding
             if (property == null)
                 throw new ArgumentNullException(nameof(property));
 
-            if (!IsBinded && property.ValueGetter != null)
+            if (!IsBound && property.ValueGetter != null)
             {
                 return property.ValueGetter(this);
             }
@@ -306,7 +306,7 @@ namespace Tizen.NUI.Binding
 
         internal void InternalSetValue(BindableProperty property, object value)
         {
-            if (true == IsBinded)
+            if (true == IsBound)
             {
                 SetValue(property, value, false, true);
             }
@@ -617,7 +617,7 @@ namespace Tizen.NUI.Binding
             if (fromStyle && !CanBeSetFromStyle(targetProperty))
                 return;
 
-            IsBinded = true;
+            IsBound = true;
 
             var context = GetOrCreateContext(targetProperty);
             if (fromStyle)
@@ -791,7 +791,11 @@ namespace Tizen.NUI.Binding
             }
         }
 
-        internal bool IsBinded
+        /// <summary>
+        /// Check if object is bound or not.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool IsBound
         {
             get;
             set;
@@ -805,7 +809,7 @@ namespace Tizen.NUI.Binding
 
             if (newvalue is BindableObject targetBindableObject)
             {
-                targetBindableObject.IsBinded = true;
+                targetBindableObject.IsBound = true;
             }
         }
 
index 64765ed..2e13748 100755 (executable)
@@ -116,7 +116,7 @@ namespace Tizen.NUI.Binding
 
                 if (source is BindableObject bindableObject)
                 {
-                    bindableObject.IsBinded = true;
+                    bindableObject.IsBound = true;
                 }
             }
         }