From: Shinwoo Kim Date: Mon, 15 Nov 2021 10:47:59 +0000 (+0900) Subject: [NUI][ATSPI] Set Navigator, ContentPage role X-Git-Tag: submit/tizen_6.5/20211117.085954~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3df26fab22458ce07e1756926f56a59ab8ac7e36;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI][ATSPI] Set Navigator, ContentPage role Navigator should be Role.PageTabList ContentPage should be Role.PageTab --- diff --git a/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs b/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs index 3e81083..9b53d6a 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs @@ -70,6 +70,15 @@ namespace Tizen.NUI.Components base.Dispose(type); } + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override void OnInitialize() + { + base.OnInitialize(); + + SetAccessibilityConstructor(Role.PageTab); + } + /// /// AppBar of ContentPage. /// AppBar is added as a child of ContentPage automatically. diff --git a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs index 8fe3b3a..dcf0662 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs @@ -106,7 +106,16 @@ namespace Tizen.NUI.Components { Layout = new AbsoluteLayout(); } - + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override void OnInitialize() + { + base.OnInitialize(); + + SetAccessibilityConstructor(Role.PageTabList); + } + /// /// An event fired when Transition has been finished. ///