From b57a223a9e8cf0da422fb16a37dd5caffc24032b Mon Sep 17 00:00:00 2001 From: Xianbing Teng Date: Thu, 26 Dec 2019 15:09:05 +0800 Subject: [PATCH] [NUI.Components] Fix BackgroundImage doesn't works issue (#1240) (#1242) --- src/Tizen.NUI.Components/Controls/Button.cs | 2 ++ src/Tizen.NUI.Components/Controls/ButtonGroup.cs | 2 ++ src/Tizen.NUI.Components/Controls/CheckBox.cs | 1 + src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs | 2 ++ src/Tizen.NUI.Components/Controls/Control.cs | 2 ++ src/Tizen.NUI.Components/Controls/DropDown.cs | 2 ++ src/Tizen.NUI.Components/Controls/ImageControl.cs | 2 ++ src/Tizen.NUI.Components/Controls/InputField.cs | 2 ++ src/Tizen.NUI.Components/Controls/Loading.cs | 2 ++ src/Tizen.NUI.Components/Controls/Pagination.cs | 2 ++ src/Tizen.NUI.Components/Controls/Popup.cs | 1 + src/Tizen.NUI.Components/Controls/Progress.cs | 1 + src/Tizen.NUI.Components/Controls/RadioButton.cs | 2 ++ src/Tizen.NUI.Components/Controls/Scrollbar.cs | 1 + src/Tizen.NUI.Components/Controls/SelectButton.cs | 1 + src/Tizen.NUI.Components/Controls/Slider.cs | 1 + src/Tizen.NUI.Components/Controls/Switch.cs | 1 + src/Tizen.NUI.Components/Controls/Tab.cs | 1 + src/Tizen.NUI.Components/Controls/Toast.cs | 1 + 19 files changed, 29 insertions(+) diff --git a/src/Tizen.NUI.Components/Controls/Button.cs b/src/Tizen.NUI.Components/Controls/Button.cs index 2b86dd1..dde1e34 100755 --- a/src/Tizen.NUI.Components/Controls/Button.cs +++ b/src/Tizen.NUI.Components/Controls/Button.cs @@ -132,6 +132,8 @@ namespace Tizen.NUI.Components private bool isEnabled = true; private bool isPressed = false; + static Button() { } + /// /// Creates a new instance of a Button. /// diff --git a/src/Tizen.NUI.Components/Controls/ButtonGroup.cs b/src/Tizen.NUI.Components/Controls/ButtonGroup.cs index 2f29950..7b8f01a 100755 --- a/src/Tizen.NUI.Components/Controls/ButtonGroup.cs +++ b/src/Tizen.NUI.Components/Controls/ButtonGroup.cs @@ -237,6 +237,8 @@ namespace Tizen.NUI.Components return btGroup.itemShadowBorder; }); + static ButtonGroup() { } + /// /// Construct an button group. /// diff --git a/src/Tizen.NUI.Components/Controls/CheckBox.cs b/src/Tizen.NUI.Components/Controls/CheckBox.cs index f73e962..b4d3dec 100755 --- a/src/Tizen.NUI.Components/Controls/CheckBox.cs +++ b/src/Tizen.NUI.Components/Controls/CheckBox.cs @@ -22,6 +22,7 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class CheckBox : SelectButton { + static CheckBox() { } /// /// Creates a new instance of a CheckBox. /// diff --git a/src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs b/src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs index 22e0d7c..20f8678 100755 --- a/src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs +++ b/src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs @@ -34,6 +34,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class CheckBoxGroup : SelectGroup { + static CheckBoxGroup() { } + /// /// Construct CheckBoxGroup /// diff --git a/src/Tizen.NUI.Components/Controls/Control.cs b/src/Tizen.NUI.Components/Controls/Control.cs index baeaae2..5257dc8 100755 --- a/src/Tizen.NUI.Components/Controls/Control.cs +++ b/src/Tizen.NUI.Components/Controls/Control.cs @@ -91,6 +91,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public ControlStyle Style => ViewStyle as ControlStyle; + static Control() { } + /// /// Construct an empty Control. /// diff --git a/src/Tizen.NUI.Components/Controls/DropDown.cs b/src/Tizen.NUI.Components/Controls/DropDown.cs index 1e129c3..d6ad876 100755 --- a/src/Tizen.NUI.Components/Controls/DropDown.cs +++ b/src/Tizen.NUI.Components/Controls/DropDown.cs @@ -135,6 +135,8 @@ namespace Tizen.NUI.Components private int spaceBetweenButtonTextAndIcon = 0; private bool itemPressed = false; + static DropDown() { } + /// /// Creates a new instance of a DropDown. /// diff --git a/src/Tizen.NUI.Components/Controls/ImageControl.cs b/src/Tizen.NUI.Components/Controls/ImageControl.cs index e104701..85e2079 100755 --- a/src/Tizen.NUI.Components/Controls/ImageControl.cs +++ b/src/Tizen.NUI.Components/Controls/ImageControl.cs @@ -61,6 +61,8 @@ namespace Tizen.NUI.Components internal ImageView imageView; + static ImageControl() { } + /// /// Construct an empty Control. /// diff --git a/src/Tizen.NUI.Components/Controls/InputField.cs b/src/Tizen.NUI.Components/Controls/InputField.cs index ed011e0..ece053c 100755 --- a/src/Tizen.NUI.Components/Controls/InputField.cs +++ b/src/Tizen.NUI.Components/Controls/InputField.cs @@ -37,6 +37,8 @@ namespace Tizen.NUI.Components // the flag indicate should relayout the textField in base class private bool relayoutTextField = true; + static InputField() { } + /// /// Initializes a new instance of the InputField class. /// diff --git a/src/Tizen.NUI.Components/Controls/Loading.cs b/src/Tizen.NUI.Components/Controls/Loading.cs index 9d34d98..416863c 100755 --- a/src/Tizen.NUI.Components/Controls/Loading.cs +++ b/src/Tizen.NUI.Components/Controls/Loading.cs @@ -87,6 +87,8 @@ namespace Tizen.NUI.Components private AnimatedImageVisual imageVisual = null; + static Loading() { } + /// /// The constructor of Loading. /// diff --git a/src/Tizen.NUI.Components/Controls/Pagination.cs b/src/Tizen.NUI.Components/Controls/Pagination.cs index 84bdf20..7a55ad3 100755 --- a/src/Tizen.NUI.Components/Controls/Pagination.cs +++ b/src/Tizen.NUI.Components/Controls/Pagination.cs @@ -38,6 +38,8 @@ namespace Tizen.NUI.Components private int indicatorCount = 0; private int selectedIndex = -1; + static Pagination() { } + /// /// Creates a new instance of a Pagination. /// diff --git a/src/Tizen.NUI.Components/Controls/Popup.cs b/src/Tizen.NUI.Components/Controls/Popup.cs index 2307f91..51f84fb 100755 --- a/src/Tizen.NUI.Components/Controls/Popup.cs +++ b/src/Tizen.NUI.Components/Controls/Popup.cs @@ -227,6 +227,7 @@ namespace Tizen.NUI.Components private TextLabel titleText; private ButtonGroup btGroup = null; private Window window = null; + static Popup() { } /// /// Creates a new instance of a Popup. diff --git a/src/Tizen.NUI.Components/Controls/Progress.cs b/src/Tizen.NUI.Components/Controls/Progress.cs index 857e08a..196c8a0 100755 --- a/src/Tizen.NUI.Components/Controls/Progress.cs +++ b/src/Tizen.NUI.Components/Controls/Progress.cs @@ -133,6 +133,7 @@ namespace Tizen.NUI.Components private float currentValue = 0; private float bufferValue = 0; + static Progress() { } /// /// The constructor of Progress /// diff --git a/src/Tizen.NUI.Components/Controls/RadioButton.cs b/src/Tizen.NUI.Components/Controls/RadioButton.cs index 724905f..bedb5e7 100755 --- a/src/Tizen.NUI.Components/Controls/RadioButton.cs +++ b/src/Tizen.NUI.Components/Controls/RadioButton.cs @@ -33,6 +33,8 @@ namespace Tizen.NUI.Components [EditorBrowsable(EditorBrowsableState.Never)] public class RadioButton : SelectButton { + static RadioButton() { } + /// /// Creates a new instance of a RadioButton. /// diff --git a/src/Tizen.NUI.Components/Controls/Scrollbar.cs b/src/Tizen.NUI.Components/Controls/Scrollbar.cs index d964537..62220ea 100755 --- a/src/Tizen.NUI.Components/Controls/Scrollbar.cs +++ b/src/Tizen.NUI.Components/Controls/Scrollbar.cs @@ -129,6 +129,7 @@ namespace Tizen.NUI.Components private int minValue; private int maxValue; private int curValue; + static ScrollBar() { } /// /// The constructor of ScrollBar. diff --git a/src/Tizen.NUI.Components/Controls/SelectButton.cs b/src/Tizen.NUI.Components/Controls/SelectButton.cs index 30c5e81..e573863 100755 --- a/src/Tizen.NUI.Components/Controls/SelectButton.cs +++ b/src/Tizen.NUI.Components/Controls/SelectButton.cs @@ -37,6 +37,7 @@ namespace Tizen.NUI.Components /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] protected SelectGroup itemGroup = null; + static SelectButton() { } /// /// Creates a new instance of a SelectButton. diff --git a/src/Tizen.NUI.Components/Controls/Slider.cs b/src/Tizen.NUI.Components/Controls/Slider.cs index 2e81002..8cbb064 100755 --- a/src/Tizen.NUI.Components/Controls/Slider.cs +++ b/src/Tizen.NUI.Components/Controls/Slider.cs @@ -147,6 +147,7 @@ namespace Tizen.NUI.Components var instance = (Slider)bindable; return instance.privateTrackPadding; }); + static Slider() { } /// /// The constructor of the Slider class. diff --git a/src/Tizen.NUI.Components/Controls/Switch.cs b/src/Tizen.NUI.Components/Controls/Switch.cs index 4ce7fd3..a0639ae 100755 --- a/src/Tizen.NUI.Components/Controls/Switch.cs +++ b/src/Tizen.NUI.Components/Controls/Switch.cs @@ -31,6 +31,7 @@ namespace Tizen.NUI.Components private ImageView trackImage; private ImageView thumbImage; private Animation handlerAni = null; + static Switch() { } /// /// Creates a new instance of a Switch. diff --git a/src/Tizen.NUI.Components/Controls/Tab.cs b/src/Tizen.NUI.Components/Controls/Tab.cs index 0dca6f0..c8797b4 100755 --- a/src/Tizen.NUI.Components/Controls/Tab.cs +++ b/src/Tizen.NUI.Components/Controls/Tab.cs @@ -35,6 +35,7 @@ namespace Tizen.NUI.Components private Animation underlineAni = null; private bool isNeedAnimation = false; private Extents space; + static Tab() { } /// /// Creates a new instance of a Tab. diff --git a/src/Tizen.NUI.Components/Controls/Toast.cs b/src/Tizen.NUI.Components/Controls/Toast.cs index 6834136..3eaaac1 100755 --- a/src/Tizen.NUI.Components/Controls/Toast.cs +++ b/src/Tizen.NUI.Components/Controls/Toast.cs @@ -84,6 +84,7 @@ namespace Tizen.NUI.Components /// 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 new ToastStyle Style => ViewStyle as ToastStyle; + static Toast() { } /// /// Construct Toast with null. -- 2.7.4