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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user