[NUI] Fix the issue that the property binding in View are not working properly. ...
authorJiyun Yang <ji.yang@samsung.com>
Fri, 3 Jan 2020 04:50:46 +0000 (13:50 +0900)
committerGitHub <noreply@github.com>
Fri, 3 Jan 2020 04:50:46 +0000 (13:50 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs

index 50a845a..89a2dca 100755 (executable)
@@ -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) =>
index 62641ab..dec6ddb 100755 (executable)
@@ -65,6 +65,8 @@ namespace Tizen.NUI.BaseComponents
 
         internal Size2D sizeSetExplicitly = new Size2D(); // Store size set by API, will be used in place of NaturalSize if not set.
 
+        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)]
@@ -2238,8 +2240,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.