[NUI] Fix background blank issue of Switch (#1281)
authorzhouleonlei <56956725+zhouleonlei@users.noreply.github.com>
Wed, 8 Jan 2020 12:09:27 +0000 (20:09 +0800)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 8 Jan 2020 12:09:27 +0000 (21:09 +0900)
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs
src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs
src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs

index 485f8b1..90d95ea 100755 (executable)
@@ -29,6 +29,8 @@ namespace Tizen.NUI.BaseComponents
     /// <since_tizen> 3 </since_tizen>
     public class ImageView : View
     {
+        static ImageView() { }
+
         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
         public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ImageView.ResourceUrl), typeof(string), typeof(ImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
index cb5c25d..2c1070a 100755 (executable)
@@ -33,6 +33,8 @@ namespace Tizen.NUI.BaseComponents
         private bool? synchronosLoading;
         private bool? orientationCorrection;
 
+        static ImageViewStyle() { }
+
         /// 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 ResourceUrlSelectorProperty = BindableProperty.Create("ResourceUrlSelector", typeof(Selector<string>), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
index 92656ac..fde9657 100755 (executable)
@@ -57,6 +57,9 @@ namespace Tizen.NUI.BaseComponents
         private bool? enableSelection;
         private bool? ellipsis;
         private bool? matchSystemLanguageDirection;
+
+        static TextFieldStyle() { }
+
         /// 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 TranslatableTextSelectorProperty = BindableProperty.Create("TranslatableTextSelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
index 752e36b..4facd3d 100755 (executable)
@@ -44,6 +44,9 @@ namespace Tizen.NUI.BaseComponents
         private LineWrapMode? lineWrapMode;
         private VerticalLineAlignment? verticalLineAlignment;
         private bool? matchSystemLanguageDirection;
+
+        static TextLabelStyle() { }
+
         /// 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 TranslatableTextSelectorProperty = BindableProperty.Create(nameof(TranslatableTextSelector), typeof(Selector<string>), typeof(TextLabelStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
index cd58f5b..8dbd269 100755 (executable)
@@ -35,6 +35,8 @@ namespace Tizen.NUI.BaseComponents
         private bool systemlangTextFlag = false;
         private InputMethodContext inputMethodCotext = null;
 
+        static TextField() { }
+
         /// 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 TextFieldStyle Style => ViewStyle as TextFieldStyle;
index 531a39c..53f7408 100755 (executable)
@@ -32,6 +32,8 @@ namespace Tizen.NUI.BaseComponents
     /// <since_tizen> 3 </since_tizen>
     public class TextLabel : View
     {
+        static TextLabel() { }
+
         /// <summary>
         /// StyleNameProperty
         /// </summary>