From d68f3e9ad740312eb685eef83ba2c87fd5760211 Mon Sep 17 00:00:00 2001 From: Fang Xiaohui Date: Fri, 2 Jul 2021 15:57:19 +0800 Subject: [PATCH] [NUI] Fix issue of SetValue to the property which hasn't DefaultValueCreate delegate --- src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs index f8d9ec2ec..8b71c2471 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs @@ -266,6 +266,16 @@ namespace Tizen.NUI.Binding { throw new ArgumentNullException(nameof(property)); } + + if (null == property.DefaultValueCreator) + { + BindablePropertyContext context = GetOrCreateContext(property); + if (null != context) + { + context.Value = value; + } + } + property.PropertyChanged?.Invoke(this, null, value); OnPropertyChanged(property.PropertyName); -- 2.34.1