0

How to open/close view from the XAML code of another view (using MVVM) when specific event is risen?

Mrg Gek
  • 856
  • 1
  • 9
  • 30

1 Answers1

0

Instead of using an event, why not use a variable with DataTriggers?

Have a MainView that has a ContentControl with Content equal to your initial view. Then when you change a variable (for example, from true to false) your MainView sets its Content equal to your other view.