I have a DataGrid
and need to handle its events. I have a business logic to be implemented which needs to be handled in the ViewModel
and able to unit test.
Can I raise events and handle them in the ViewModel
? In this case how to unit test?
I have a DataGrid
and need to handle its events. I have a business logic to be implemented which needs to be handled in the ViewModel
and able to unit test.
Can I raise events and handle them in the ViewModel
? In this case how to unit test?
You can use EventTrigger from System.Windows.Interactivity or MvvmLight