Added LandmarkType to automation properties (#20134)

* Added LandmarkType to automation properties

* Set AutomationProperties.AccessibilityView on Main landmark in IntegrationTestApp, which is required for Narrator to find the landmark

* Implement AXRoleDescription as suggested by W3C

* Fixed wrong role descriptions
This commit is contained in:
Melissa
2025-11-26 15:49:28 +01:00
committed by GitHub
parent 9c393b306a
commit d2817201cb
10 changed files with 163 additions and 4 deletions
+5 -2
View File
@@ -37,14 +37,17 @@
DisplayMemberBinding="{Binding Name}"
ItemsSource="{Binding Pages}"
SelectedItem="{Binding SelectedPage}"
SelectionChanged="Pager_SelectionChanged">
SelectionChanged="Pager_SelectionChanged"
AutomationProperties.LandmarkType="Navigation">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
<Decorator Name="PagerContent"/>
<Decorator Name="PagerContent"
AutomationProperties.AccessibilityView="Control"
AutomationProperties.LandmarkType="Main"/>
</DockPanel>
</DockPanel>