WPF TextBlock Contents not read by screen reader

拈花ヽ惹草 提交于 2019-12-08 02:14:26
Sheridan

It seems as though WPF still doesn't provide full support for all screen readers. I have searched online and initially only found unanswered similar questions:

WPF: how to make the Screen reader to read the text from a TextBox

After continuing, I found that there is one reader that does appear to work with WPF: NVDA. To find out more, please view the NVDA Community page. I found this from the following question:

Screenreader (NVDA) only reads WPF Window-Title

Furthermore, it seems as though you will need to set the x:Uid properties (normally reserved for the WPF UI automation) to the string to read out. I found this from the following question:

How-to for making my WPF app screen reader compatible?

Finally, you can find a useful tutorial for providing accessibility in WPF Applications in the How to Code WPF Applications for Accessibility on the Dev Pro website.

I was able to fix this by giving a value for the AutomationProperties.HelpText property on the Run of the TextBlock and focusing on the TextBlock once the window had loaded.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!