[NUI] Add constructors with string style to apply string style
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 16 Feb 2023 10:17:18 +0000 (19:17 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Thu, 16 Feb 2023 10:37:42 +0000 (19:37 +0900)
To apply string style during constructing controls, constructors with
string style are added.

src/Tizen.NUI.Components/Controls/Dialog.cs
src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs
src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs
src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs
src/Tizen.NUI.Components/Controls/Navigation/Page.cs
src/Tizen.NUI.Components/Controls/ScrollableBase.cs
src/Tizen.NUI.Components/Controls/TabBar.cs
src/Tizen.NUI.Components/Controls/TabContent.cs
src/Tizen.NUI.Components/Controls/TabView.cs

index dc54404..3bf4ee9 100755 (executable)
@@ -65,6 +65,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of Dialog with style.
+        /// </summary>
+        /// <param name="style">Creates Dialog by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public Dialog(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a Dialog with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created Dialog.</param>
index 2e54a70..227770a 100755 (executable)
@@ -48,6 +48,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of ContentPage with style.
+        /// </summary>
+        /// <param name="style">Creates ContentPage by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public ContentPage(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a ContentPage with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created ContentPage.</param>
index 5cb7903..5931fab 100755 (executable)
@@ -57,6 +57,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of DialogPage with style.
+        /// </summary>
+        /// <param name="style">Creates DialogPage by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public DialogPage(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a DialogPage with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created DialogPage.</param>
index 77b5ac4..b0ccc7a 100755 (executable)
@@ -132,6 +132,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of Navigator with style.
+        /// </summary>
+        /// <param name="style">Creates Navigator by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public Navigator(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a Navigator with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created Navigator.</param>
index e2227c4..f071859 100755 (executable)
@@ -114,6 +114,15 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of Page with style.
+        /// </summary>
+        /// <param name="style">Creates Page by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public Page(string style) : base(style)
+        {
+        }
+
+        /// <summary>
         /// Creates a new instance of a Page with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created Page.</param>
index 04c3a65..f2a0759 100755 (executable)
@@ -959,6 +959,16 @@ namespace Tizen.NUI.Components
         /// <summary>
         /// Creates a new instance of a ScrollableBase with style.
         /// </summary>
+        /// <param name="style">Creates ScrollableBase by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public ScrollableBase(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
+        /// Creates a new instance of a ScrollableBase with style.
+        /// </summary>
         /// <param name="style">A style applied to the newly created ScrollableBase.</param>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public ScrollableBase(ControlStyle style) : base(style)
index 606c6ad..48b5adc 100755 (executable)
@@ -78,6 +78,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of TabBar with style.
+        /// </summary>
+        /// <param name="style">Creates TabBar by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public TabBar(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a TabBar with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created TabBar.</param>
index b0fef97..3451f80 100755 (executable)
@@ -45,6 +45,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of TabContent with style.
+        /// </summary>
+        /// <param name="style">Creates TabContent by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public TabContent(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a TabContent with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created TabContent.</param>
index 3969a90..897e358 100755 (executable)
@@ -109,6 +109,16 @@ namespace Tizen.NUI.Components
         }
 
         /// <summary>
+        /// Creates a new instance of TabView.
+        /// </summary>
+        /// <param name="style">Creates TabView by special style defined in UX.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public TabView(string style) : base(style)
+        {
+            Initialize();
+        }
+
+        /// <summary>
         /// Creates a new instance of a TabView with style.
         /// </summary>
         /// <param name="style">A style applied to the newly created TabView.</param>