[NUI] Add PreLoad of Tizen.NUI.Components.Control
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 4 Feb 2021 01:27:08 +0000 (10:27 +0900)
committerlwc0917 <48237284+lwc0917@users.noreply.github.com>
Thu, 18 Feb 2021 03:15:29 +0000 (12:15 +0900)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI.Components/Controls/Control.cs

index 459a349..4cc995c 100755 (executable)
@@ -56,6 +56,15 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// This is used to improve theme performance.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        static public void PreLoad()
+        {
+            ThemeManager.AddPackageTheme(DefaultThemeCreator.Instance);
+        }
+
+        /// <summary>
         /// Construct an empty Control.
         /// </summary>
         /// <since_tizen> 6 </since_tizen>