From: Jaehyun Cho Date: Thu, 16 Feb 2023 10:17:18 +0000 (+0900) Subject: [NUI] Add constructors with string style to apply string style X-Git-Tag: submit/tizen_7.0/20230216.150906~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ce46e15ec6f3abe6537d6898640e4798f1d1c4c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add constructors with string style to apply string style To apply string style during constructing controls, constructors with string style are added. --- diff --git a/src/Tizen.NUI.Components/Controls/Dialog.cs b/src/Tizen.NUI.Components/Controls/Dialog.cs index dc54404..3bf4ee9 100755 --- a/src/Tizen.NUI.Components/Controls/Dialog.cs +++ b/src/Tizen.NUI.Components/Controls/Dialog.cs @@ -65,6 +65,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of Dialog with style. + /// + /// Creates Dialog by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public Dialog(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a Dialog with style. /// /// A style applied to the newly created Dialog. diff --git a/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs b/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs index 2e54a70..227770a 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs @@ -48,6 +48,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of ContentPage with style. + /// + /// Creates ContentPage by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public ContentPage(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a ContentPage with style. /// /// A style applied to the newly created ContentPage. diff --git a/src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs b/src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs index 5cb7903..5931fab 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs @@ -57,6 +57,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of DialogPage with style. + /// + /// Creates DialogPage by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public DialogPage(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a DialogPage with style. /// /// A style applied to the newly created DialogPage. diff --git a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs index 77b5ac4..b0ccc7a 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs @@ -132,6 +132,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of Navigator with style. + /// + /// Creates Navigator by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public Navigator(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a Navigator with style. /// /// A style applied to the newly created Navigator. diff --git a/src/Tizen.NUI.Components/Controls/Navigation/Page.cs b/src/Tizen.NUI.Components/Controls/Navigation/Page.cs index e2227c4..f071859 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/Page.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/Page.cs @@ -114,6 +114,15 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of Page with style. + /// + /// Creates Page by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public Page(string style) : base(style) + { + } + + /// /// Creates a new instance of a Page with style. /// /// A style applied to the newly created Page. diff --git a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs index 04c3a65..f2a0759 100755 --- a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs +++ b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs @@ -959,6 +959,16 @@ namespace Tizen.NUI.Components /// /// Creates a new instance of a ScrollableBase with style. /// + /// Creates ScrollableBase by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public ScrollableBase(string style) : base(style) + { + Initialize(); + } + + /// + /// Creates a new instance of a ScrollableBase with style. + /// /// A style applied to the newly created ScrollableBase. [EditorBrowsable(EditorBrowsableState.Never)] public ScrollableBase(ControlStyle style) : base(style) diff --git a/src/Tizen.NUI.Components/Controls/TabBar.cs b/src/Tizen.NUI.Components/Controls/TabBar.cs index 606c6ad..48b5adc 100755 --- a/src/Tizen.NUI.Components/Controls/TabBar.cs +++ b/src/Tizen.NUI.Components/Controls/TabBar.cs @@ -78,6 +78,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of TabBar with style. + /// + /// Creates TabBar by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public TabBar(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a TabBar with style. /// /// A style applied to the newly created TabBar. diff --git a/src/Tizen.NUI.Components/Controls/TabContent.cs b/src/Tizen.NUI.Components/Controls/TabContent.cs index b0fef97..3451f80 100755 --- a/src/Tizen.NUI.Components/Controls/TabContent.cs +++ b/src/Tizen.NUI.Components/Controls/TabContent.cs @@ -45,6 +45,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of TabContent with style. + /// + /// Creates TabContent by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public TabContent(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a TabContent with style. /// /// A style applied to the newly created TabContent. diff --git a/src/Tizen.NUI.Components/Controls/TabView.cs b/src/Tizen.NUI.Components/Controls/TabView.cs index 3969a90..897e358 100755 --- a/src/Tizen.NUI.Components/Controls/TabView.cs +++ b/src/Tizen.NUI.Components/Controls/TabView.cs @@ -109,6 +109,16 @@ namespace Tizen.NUI.Components } /// + /// Creates a new instance of TabView. + /// + /// Creates TabView by special style defined in UX. + [EditorBrowsable(EditorBrowsableState.Never)] + public TabView(string style) : base(style) + { + Initialize(); + } + + /// /// Creates a new instance of a TabView with style. /// /// A style applied to the newly created TabView.