From: Fang Xiaohui Date: Wed, 23 Mar 2022 03:28:22 +0000 (+0800) Subject: [NUI] Remove SetValueAndForceSendChangeSignal X-Git-Tag: submit/tizen_6.5/20220427.151219~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0d2b4745328fa5eb4f663db5a92d8b690efd0c0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Remove SetValueAndForceSendChangeSignal --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 37e9706..a63a90f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -150,7 +150,7 @@ namespace Tizen.NUI.BaseComponents } set { - SetValueAndForceSendChangeSignal(TextProperty, value); + SetValue(TextProperty, value); NotifyPropertyChanged(); } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 7c008a6..acc4180 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -227,7 +227,7 @@ namespace Tizen.NUI.BaseComponents } set { - SetValueAndForceSendChangeSignal(TextProperty, value); + SetValue(TextProperty, value); NotifyPropertyChanged(); } } diff --git a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs index c42b12c..426fb55 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs @@ -260,25 +260,6 @@ namespace Tizen.NUI.Binding } } - internal void SetValueAndForceSendChangeSignal(BindableProperty property, object value) - { - if (property == null) - throw new ArgumentNullException(nameof(property)); - - if (true == IsBinded) - { - if (property.IsReadOnly) - throw new InvalidOperationException(string.Format("The BindableProperty \"{0}\" is readonly.", property.PropertyName)); - - SetValueCore(property, value, SetValueFlags.ClearOneWayBindings | SetValueFlags.ClearDynamicResource, - SetValuePrivateFlags.ManuallySet | SetValuePrivateFlags.CheckAccess, true); - } - else - { - property.PropertyChanged?.Invoke(this, null, value); - } - } - /// This will be public opened in next ACR. [EditorBrowsable(EditorBrowsableState.Never)] public void ForceNotifyBindedInstance(BindableProperty property)