From: Xianbing Teng Date: Fri, 27 Dec 2019 08:10:32 +0000 (+0800) Subject: [NUI.Components] Fix Background Image not works issue (#1246) (#1248) X-Git-Tag: submit/tizen/20200114.005334~1^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa0bd2b943e7328c73588dc73f2761ac0ef9ab8e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI.Components] Fix Background Image not works issue (#1246) (#1248) --- diff --git a/src/Tizen.NUI.Components/Style/ButtonStyle.cs b/src/Tizen.NUI.Components/Style/ButtonStyle.cs index 9bb8632..2dc528d 100755 --- a/src/Tizen.NUI.Components/Style/ButtonStyle.cs +++ b/src/Tizen.NUI.Components/Style/ButtonStyle.cs @@ -109,6 +109,8 @@ namespace Tizen.NUI.Components return buttonStyle.textPadding; }); + static ButtonStyle() { } + /// /// Creates a new instance of a ButtonStyle. /// diff --git a/src/Tizen.NUI.Components/Style/ControlStyle.cs b/src/Tizen.NUI.Components/Style/ControlStyle.cs index 030c3f6..a37925d 100755 --- a/src/Tizen.NUI.Components/Style/ControlStyle.cs +++ b/src/Tizen.NUI.Components/Style/ControlStyle.cs @@ -71,6 +71,9 @@ namespace Tizen.NUI.Components private Selector backgroundImage; private Selector backgroundImageBorder; private Selector backgroundColor; + + static ControlStyle () { } + /// /// Creates a new instance of a ControlStyle. /// diff --git a/src/Tizen.NUI.Components/Style/DropDownStyle.cs b/src/Tizen.NUI.Components/Style/DropDownStyle.cs index 361f24b..92d9d0f 100755 --- a/src/Tizen.NUI.Components/Style/DropDownStyle.cs +++ b/src/Tizen.NUI.Components/Style/DropDownStyle.cs @@ -99,6 +99,8 @@ namespace Tizen.NUI.Components return dropDownStyle.listPadding; }); + static DropDownStyle() { } + /// /// Creates a new instance of a DropDownStyle. /// diff --git a/src/Tizen.NUI.Components/Style/ImageControlStyle.cs b/src/Tizen.NUI.Components/Style/ImageControlStyle.cs index 3c692bf..abb189f 100755 --- a/src/Tizen.NUI.Components/Style/ImageControlStyle.cs +++ b/src/Tizen.NUI.Components/Style/ImageControlStyle.cs @@ -59,6 +59,8 @@ namespace Tizen.NUI.Components private Selector resourceUrlSelector; private Selector borderSelector; + static ImageControlStyle() { } + /// /// Creates a new instance of a ImageControlStyle. /// diff --git a/src/Tizen.NUI.Components/Style/InputFieldStyle.cs b/src/Tizen.NUI.Components/Style/InputFieldStyle.cs index 96cc498..efb00bd 100755 --- a/src/Tizen.NUI.Components/Style/InputFieldStyle.cs +++ b/src/Tizen.NUI.Components/Style/InputFieldStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class InputFieldStyle : ControlStyle { + static InputFieldStyle() { } + /// /// Creates a new instance of a InputFieldAttributes. /// diff --git a/src/Tizen.NUI.Components/Style/LoadingStyle.cs b/src/Tizen.NUI.Components/Style/LoadingStyle.cs index a3bce97..5d8f73b 100755 --- a/src/Tizen.NUI.Components/Style/LoadingStyle.cs +++ b/src/Tizen.NUI.Components/Style/LoadingStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class LoadingStyle : ControlStyle { + static LoadingStyle() { } + /// /// Creates a new instance of a LoadingStyle. /// diff --git a/src/Tizen.NUI.Components/Style/PaginationStyle.cs b/src/Tizen.NUI.Components/Style/PaginationStyle.cs index edfeb58..93abff2 100755 --- a/src/Tizen.NUI.Components/Style/PaginationStyle.cs +++ b/src/Tizen.NUI.Components/Style/PaginationStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class PaginationStyle : ControlStyle { + static PaginationStyle() { } + /// /// Creates a new instance of a PaginationStyle. /// diff --git a/src/Tizen.NUI.Components/Style/PopupStyle.cs b/src/Tizen.NUI.Components/Style/PopupStyle.cs index 6193ec6..6bc11c0 100755 --- a/src/Tizen.NUI.Components/Style/PopupStyle.cs +++ b/src/Tizen.NUI.Components/Style/PopupStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class PopupStyle : ControlStyle { + static PopupStyle() { } + /// /// Creates a new instance of a PopupStyle. /// diff --git a/src/Tizen.NUI.Components/Style/ProgressStyle.cs b/src/Tizen.NUI.Components/Style/ProgressStyle.cs index b65efe2..cfeb0fb 100755 --- a/src/Tizen.NUI.Components/Style/ProgressStyle.cs +++ b/src/Tizen.NUI.Components/Style/ProgressStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class ProgressStyle : ControlStyle { + static ProgressStyle() { } + /// /// Creates a new instance of a ProgressStyle. /// diff --git a/src/Tizen.NUI.Components/Style/ScrollbarStyle.cs b/src/Tizen.NUI.Components/Style/ScrollbarStyle.cs index 9d4a29a..a7db5d6 100755 --- a/src/Tizen.NUI.Components/Style/ScrollbarStyle.cs +++ b/src/Tizen.NUI.Components/Style/ScrollbarStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class ScrollBarStyle : ControlStyle { + static ScrollBarStyle() { } + /// /// Creates a new instance of a ScrollBarStyle. /// diff --git a/src/Tizen.NUI.Components/Style/SliderStyle.cs b/src/Tizen.NUI.Components/Style/SliderStyle.cs index b3f02dd..cc2b65b 100755 --- a/src/Tizen.NUI.Components/Style/SliderStyle.cs +++ b/src/Tizen.NUI.Components/Style/SliderStyle.cs @@ -89,6 +89,9 @@ namespace Tizen.NUI.Components var instance = (SliderStyle)bindable; return instance.trackPadding; }); + + static SliderStyle() { } + /// /// Creates a new instance of a SliderStyle. /// diff --git a/src/Tizen.NUI.Components/Style/SwitchStyle.cs b/src/Tizen.NUI.Components/Style/SwitchStyle.cs index a2aff40..699e051 100755 --- a/src/Tizen.NUI.Components/Style/SwitchStyle.cs +++ b/src/Tizen.NUI.Components/Style/SwitchStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class SwitchStyle : ButtonStyle { + static SwitchStyle() { } + /// /// Creates a new instance of a SwitchStyle. /// diff --git a/src/Tizen.NUI.Components/Style/TabStyle.cs b/src/Tizen.NUI.Components/Style/TabStyle.cs index 4c61733..f438ab3 100755 --- a/src/Tizen.NUI.Components/Style/TabStyle.cs +++ b/src/Tizen.NUI.Components/Style/TabStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class TabStyle : ControlStyle { + static TabStyle() { } + /// /// Creates a new instance of a TabStyle. /// diff --git a/src/Tizen.NUI.Components/Style/ToastStyle.cs b/src/Tizen.NUI.Components/Style/ToastStyle.cs index e41f036..aa7421a 100755 --- a/src/Tizen.NUI.Components/Style/ToastStyle.cs +++ b/src/Tizen.NUI.Components/Style/ToastStyle.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class ToastStyle : ControlStyle { + static ToastStyle() { } + /// /// Creates a new instance of a ToastStyle. ///