Is accessing the ViewModel in code behind always violating the MVVM pattern?
问题 One thing I am really not sure about is how to properly pass mouse events to the ViewModel. There is the way of binding triggers using the interactivity extension like for instance in: WPF event binding from View to ViewModel? But this does not forward the MouseEventArgs to my knowledge, and this solution does not appear very elegant to me. So what would be the proper solution? One way is to register an event and to handle it in the code behind, e.g.: private void ListBox_PreviewMouseDown