From 0b044aa28c8b4f33f58ece8bcc01c21226bfc427 Mon Sep 17 00:00:00 2001 From: zhouleonlei <56956725+zhouleonlei@users.noreply.github.com> Date: Wed, 8 Jan 2020 20:10:46 +0800 Subject: [PATCH] [NUI] Fix background blank issue of Switch (#1282) --- src/Tizen.NUI/src/public/BaseComponents/ImageView.cs | 2 ++ src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs | 2 ++ src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs | 3 +++ src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs | 3 +++ src/Tizen.NUI/src/public/BaseComponents/TextField.cs | 2 ++ src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs | 2 ++ 6 files changed, 14 insertions(+) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index 485f8b1..90d95ea 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -29,6 +29,8 @@ namespace Tizen.NUI.BaseComponents /// 3 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) => diff --git a/src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs b/src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs index cb5c25d..2c1070a 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs @@ -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), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) => diff --git a/src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs b/src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs index 92656ac..fde9657 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Style/TextFieldStyle.cs @@ -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), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) => diff --git a/src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs b/src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs index 752e36b..4facd3d 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Style/TextLabelStyle.cs @@ -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), typeof(TextLabelStyle), null, propertyChanged: (bindable, oldValue, newValue) => diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index cd58f5b..8dbd269 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -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; diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 531a39c..53f7408 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -32,6 +32,8 @@ namespace Tizen.NUI.BaseComponents /// 3 public class TextLabel : View { + static TextLabel() { } + /// /// StyleNameProperty /// -- 2.7.4