[NUI] Avoid creating BindablePropertyContext for the special cases
authorJiyun Yang <ji.yang@samsung.com>
Sun, 12 Sep 2021 11:08:10 +0000 (20:08 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 05:57:53 +0000 (14:57 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs

index 7fe28e9..893e0aa 100755 (executable)
@@ -188,6 +188,11 @@ namespace Tizen.NUI.Binding
             if (property == null)
                 throw new ArgumentNullException(nameof(property));
 
+            if (!IsBinded && property.DefaultValueCreator != null)
+            {
+                return property.DefaultValueCreator(this);
+            }
+
             BindablePropertyContext context = property.DefaultValueCreator != null ? GetOrCreateContext(property) : GetContext(property);
 
             if (context == null)