[NUI] Fix IsSet return false
authorXianbing Teng <xb.teng@samsung.com>
Tue, 21 Jun 2022 09:56:33 +0000 (17:56 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 21 Jun 2022 11:42:59 +0000 (20:42 +0900)
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs

index 8e4805c..8127a5d 100755 (executable)
@@ -323,16 +323,16 @@ namespace Tizen.NUI.Binding
                     throw new ArgumentNullException(nameof(property));
                 }
 
+                BindablePropertyContext context = GetOrCreateContext(property);
+                if (null != context)
+                {
+                    context.Attributes |= BindableContextAttributes.IsManuallySet;
+                }
                 object oldvalue = null;
                 if (null == property.DefaultValueCreator)
                 {
-                    BindablePropertyContext context = GetOrCreateContext(property);
-                    if (null != context)
-                    {
-                        context.Attributes |= BindableContextAttributes.IsManuallySet;
-                        oldvalue = context.Value;
-                        context.Value = value;
-                    }
+                    oldvalue = context.Value;
+                    context.Value = value;
                 }
                 else
                 {