Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a treeview with certain children that can be displayed in a tabcontrol. I want to be able to click on a treeview item in the treeview and have my tabcontrol automatically switch to or open up that item in a tab.

Does anyone know how to do this? It does not necessarily have to be a tabcontrol, it could be any kind of content control. I'm thinking about changing that anyway....
Posted

1 solution

By catching the selection changed event on the tree view and then doing whatever you want in it ?
 
Share this answer
 
Comments
industryunleash 21-Jul-10 20:24pm    
well currently my tabcontrol is bound to an itemsource of viewmodel objects, same with my treeview, is it possible to use the selection changed event without messing with the view-viewmodel relationship?

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