I’m creating a c# WPF MVVM application where there is a MainWindow(MainView) that has a ContentControl bound to the CurrentView(property). There is a UserControl Test that is initially installed in CurrentView, it starts a test and runs a timer, at the end of it I want to change CurrentView to TestResults with data transfer, but unfortunately I have no idea how to do this, so I would like to know what are the possible solutions?
I tried to do this through events, but since I didn’t really work with them, nothing worked and the UserControl handler was always null, although I bound it in MainVM to a method that would take arguments and change CurrentView.
ikikaidesu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.