如何使用AutomationProperties更改wpf组件的默认描述?

时间:2020-05-07 17:43:13

标签: c# wpf accessibility uiaccessibility jaws-screen-reader

我正在用西班牙语的Visual Studio开发可访问的WPF(C#)应用程序。我正在使用JAWS屏幕阅读器。我已经使用AutomationProperties.Name用西班牙语标记了MenuItems,以便屏幕阅读器正确读取它们。

<Button x:Name="PlayButton" Width="{Binding FontSize}" AutomationProperties.Name="Reproducir" Command="{Binding PlayCommand}" >
    <Image Source="Icons/Play.png"/>
</Button>

我的问题是屏幕阅读器在我给组件起的名字后面说了一个默认的描述(例如按钮顶部激活按空格键)。此说明是英语,但我希望它是西班牙语。 我检查了UI语言和文化是否是西班牙西班牙语,并更改了组件Language="es-ES"中的语言。

0 个答案:

没有答案