MVVM WPF change smoothly one window to another
问题 I'm doing an app in WPF with design pattern MVVM. I have there fullsize windows(not only maximized but fullsize). I need to switch one window to another(open window B by pressing button x in window A and close window A when window B is showns). I'm closing window A in loaded event in window B but I still can see a desktop for a while before window B is shown. How to do it without seeing desktop? 回答1: Instead of switching between windows, you can have one window with a ContentControl . All you