Im using the latest version of mvvm light toolkit, however i\'m not clear how I can use EventToCommand for the event TreeViewItem.Expanded.
THis dosent work... what
I was able to do this by creating a custom ItemContainerStyle for the TreeView. You should be able to put this together with the following code snippets.
1. A ViewModel for the TreeView
public class TreeViewModelView
{
public IEnumerable
2. Define the TreeView and setup the required data binding:
3. In Expression Blend you can create edit a copy of the ItemContainerStyle template
4. Then replace the ToggleButton with: