Click here to Skip to main content
14,836,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a treeview which contains several sub-groups. When an item in one of these sub-groups is disabled and if the user clicks on the disabled item , instead of not doing anything , the parent of the item gets selected. The behavior i want is just not do anything when a disabled treeviewitem is clicked.

How do I achieve this?

Thanks for any help.
Hellraiser123 24-Sep-13 4:15am
I was able to solve this issue by following the approach proposed in this thread...

1 solution

Try reading this link:[^]

FYI it was the third result for the following google search:
"wpf treeview prevent parent select on click of disabled child"

You should be able to use the approach they are using to define custom behavior.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900