June 10th, 2010, 09:29 AM
WPF TreeView containing Checkboxes
I have a treeview that I'm using to display data from an xml file. On the treeview_selecteditemchanged event I add the selected item to a temporary array/collection. Instead of clicking the text displayed in the tree, our users would like a checkbox.
I've added a checkbox to every treeviewitem by using a data template but my issue is the click event on the checkbox is not tied to the selecteditemchanged event of the tree? How can I tie these two together? Whenever a user clicks on a checkbox I want the text next to it to be selected also?
any help would be appreciated.
Click Here to Expand Forum to Full Width