How can I prevent a screen reader / teller from reading controls that are hidden in WPF?

I have a WPF application that should support accessibility. I have a TextBlock, which under certain conditions has its visibility set to Collapsed.

The Windows 7 Narrator as well as the NVDA screen reader declare a TextBlock, even if Visibility is set to Difficulty.

What do I need to do so that it is not readable?

+7
source share
2 answers

Have you tried disabling them? This has been quite a while since the last time I worked on WPF accessibility :-(

0
source

Add the aria-hidden = "true" attribute to your element. aria-hidden indicates that the element and all its descendants are not visible and are not perceived by any user implemented by the author.

You will need to remove this attribute (or set it to false) when your content becomes visible.

AT support was spotty a couple of years ago, but now it is 100%, see table here: http://terrillthompson.com/tests/hiddencontent.html

-one
source

All Articles