In the main WPF window, there is a TabControl and for each tab I wanted to create classes for handling what is happening in it. But I ran into the problem that I cannot get access to the controls of the main form, call the MessageBox, etc. from this class. Whether prompt it is possible or I do everything incorrectly.

  • 2
    In this case, it is best to use the Mvvm pattern. To do this, there are different libraries, one of the best MvvmCross or Caliburn. Micro. The trick is that changing models in a class-view model will change the UI in the view - Vladimir Paliukhovich
  • and it would not be bad to see the code - Yurii Manziuk

0