MVVM WPF – the best way to switch windows?

I'm building this tcp client, and on the way trying to learn WPF and MVVM principles.
The problem is that I never found a good way to switch out screens – basically I have 3 screens – a login screen, a lobby screen and the main screen.
Most of the ways I saw to switch between them either completely break MVVM responsibilities or feel extremely hacky.
What do you think is the recommended way to switch out screens and pass information between them?

by lurebat via /r/csharp

Leave a Reply