From 004ca40b3b727b520eb8b80b0b5be544d7fab29f Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Fri, 3 Jan 2020 13:58:26 +0900 Subject: [PATCH] [NUI] Fix the issue that the property binding in View are not working properly. (#1259) (#1265) Signed-off-by: Jiyun Yang --- src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs | 2 ++ src/Tizen.NUI/src/public/BaseComponents/View.cs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs b/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs index 50a845a..89a2dca 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs @@ -85,6 +85,8 @@ namespace Tizen.NUI.BaseComponents private Extents margin; private float? weight; + static ViewStyle() {} + /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) => diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index e7e72de..b53af5e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -64,6 +64,8 @@ namespace Tizen.NUI.BaseComponents private Shadow boxShadow; + static View() {} + private ViewStyle viewStyle; /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] @@ -2240,8 +2242,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] protected virtual ViewStyle GetViewStyle() { - viewStyle = new ViewStyle(); - return viewStyle; + return new ViewStyle(); } /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. -- 2.7.4