Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I would like to bind SelectedItemChanged event of treeview in my ViewModel class.

How to write it in Xaml and how to handle it from ViewModel class.

Thanks in advance :)
Posted

1 solution

You can use event to command behavior, example @ source code[^], you can find additional info @ http://geekswithblogs.net/lbugnion/archive/2009/11/05/mvvm-light-toolkit-v3-alpha-2-eventtocommand-behavior.aspx[^]
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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