Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Setting ItemContainerStyle on a tree view

$
0
0

Greetings.

I'm writing a small application to allow my testers to edit XML files that describe how tests are run by our test harness.  The editor displays a tree view with the test pass, or session, as the root node, threads beneath that, and tests beneath that.  That's the easy part.

Now, here's the problem.  I'm completely blind.  To clarify, this means I have zero eyesight whatsoever (let me take this opportunity to thank the powers that be for automatic layout).  Now, here's the thing.  To get my application, which uses, amongst other things, a data bound tree view, to work properly with screen readers, I had to create an ItemContainerStyle for the data bound tree view which contains a Style whose purpose is to properly set the UI Automation Properties (something that really needs better documentation, and is the thing that prevents me from using about 90% of the Windows Store apps out there).  The only thing this style does is set the UI Automation properties.

Now, here's the question.  I want my app to be accessible to sighted people (that just feels weird to say.  Usually I see this sentiment expressed by sighted devs wanting to add accessibility to their apps).  Since the only thing I'm changing are automation properties, do I need to declare my style element based on another style?  If so, do I base it on the TreeView or TreeViewItem style?  Let me know if there is any confusion.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>