1

I need to bring the application to the pattern MVVM. Tell me how to refuse events in code-behind. And when I click the mouse I have to get the coordinates of the point. When changing the size of the canvas - the new height and width.

venerik
  • 5,766
  • 2
  • 33
  • 43
Jakobinec
  • 63
  • 13
  • 1
    You don't need to refuse all events from code behind when moving to MVVM. Some GUI related events are still valid. Have a look at [this](http://stackoverflow.com/questions/6051375/wpf-mvvm-using-events-is-a-bad-tone) question. – venerik Sep 03 '14 at 10:48
  • How can I contact event in code-behind with my ViewModel? DataContext of View associated with ViewModel in Xaml. – Jakobinec Sep 03 '14 at 11:09

0 Answers0