Answer the question
In order to leave comments, you need to log in
How to use WPF elements to call another window without deviating from the MVVM pattern?
Let's say we have a project with the following content:
-- mainWindow --
|
-> -- views --
+firstwindow.cs
|
-> -- viewmodels --
+firstwindowviewmodel.cs
+mainwindow.xaml
+mainwindowviewmodel.cs
Answer the question
In order to leave comments, you need to log in
Have a service that manages your windows.
Request a service interface in any VM.
Exchange data between windows through another service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question