From 105decc32a31ff1b74cfc7c7624ca17ecfce7157 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Sun, 12 Sep 2021 20:08:10 +0900 Subject: [PATCH] [NUI] Avoid creating BindablePropertyContext for the special cases Signed-off-by: Jiyun Yang --- src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs index 7fe28e9..893e0aa 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs @@ -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) -- 2.7.4