I learned from more experienced people that on a full MVVM, OnNavigatedFrom / To events should also be used in the view-model, and not in the beehinda code. How can I override them so that they become accessible from the model view specifically for his view?

  • most often you will be told that you need to use the framework, but which one depends on the preferences (my darling :)) of the respondent. Navigation is the work of View. This means that in order to access this functionality in ViewModel, you will need access to View through an interface that describes navigation methods. - Bulson
  • continued This is also like working from a view model with a database or file system (read - write), navigation, informational messages to the user (MessageBox) with all this view model should work through interfaces, and not directly. - Bulson

0