[NUI][ATSPI] Set Navigator, ContentPage role
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 15 Nov 2021 10:47:59 +0000 (19:47 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 17 Nov 2021 08:23:25 +0000 (17:23 +0900)
Navigator should be Role.PageTabList
ContentPage should be Role.PageTab

src/Tizen.NUI.Components/Controls/Navigation/ContentPage.cs
src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs

index 3e81083..9b53d6a 100755 (executable)
@@ -70,6 +70,15 @@ namespace Tizen.NUI.Components
             base.Dispose(type);
         }
 
+        /// <inheritdoc/>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public override void OnInitialize()
+        {
+            base.OnInitialize();
+
+            SetAccessibilityConstructor(Role.PageTab);
+        }
+
         /// <summary>
         /// AppBar of ContentPage.
         /// AppBar is added as a child of ContentPage automatically.
index 8fe3b3a..dcf0662 100755 (executable)
@@ -106,7 +106,16 @@ namespace Tizen.NUI.Components
         {
             Layout = new AbsoluteLayout();
         }
-        
+
+        /// <inheritdoc/>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public override void OnInitialize()
+        {
+            base.OnInitialize();
+
+            SetAccessibilityConstructor(Role.PageTabList);
+        }
+
         /// <summary>
         /// An event fired when Transition has been finished.
         /// </summary>