Fix Accessibility issues in the PowerRename settings page (#6101)

* add automation property to number box

* Set the automation property for the image
This commit is contained in:
Alekhya
2020-08-24 10:48:12 -07:00
committed by GitHub
parent f2fd376363
commit c0c68f6acd
2 changed files with 8 additions and 3 deletions

View File

@@ -636,6 +636,9 @@
<data name="About_PowerRename.Text" xml:space="preserve">
<value>About Power Rename</value>
</data>
<data name="PowerRename_Image.AutomationProperties.Name" xml:space="preserve">
<value>Power Rename</value>
</data>
<data name="About_ShortcutGuide.Text" xml:space="preserve">
<value>About Shortcut Guide</value>
</data>

View File

@@ -75,7 +75,8 @@
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
/>
<TextBlock x:Uid="PowerRename_Toggle_MaxDispListNum"
<TextBlock Name="PowerRename_Toggle_MaxDispListNum"
x:Uid="PowerRename_Toggle_MaxDispListNum"
Margin="{StaticResource SmallTopMargin}"
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
@@ -86,7 +87,8 @@
Minimum="0"
Width="240"
Maximum="20"
IsEnabled="{ x:Bind Mode=OneWay, Path=ViewModel.GlobalAndMruEnabled}"/>
IsEnabled="{ x:Bind Mode=OneWay, Path=ViewModel.GlobalAndMruEnabled}"
AutomationProperties.LabeledBy="{Binding ElementName=PowerRename_Toggle_MaxDispListNum}"/>
<CheckBox x:Uid="PowerRename_Toggle_RestoreFlagsOnLaunch"
Margin="0, 17, 0, 0"
@@ -115,7 +117,7 @@
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopBottomMargin}"
RelativePanel.Below="DescriptionPanel">
<Image Source="ms-appx:///Assets/Modules/PowerRename.png" />
<Image x:Uid="PowerRename_Image" Source="ms-appx:///Assets/Modules/PowerRename.png" />
</Border>
<StackPanel x:Name="LinksPanel"