Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CloseViewModelAsync is closing all opened views #1130
I opened two views simultaneously from Main Window. One view would be closed automatically after the work done on that view and another view would be used for getting user inputs. The issue here is that the auto closing of one view closes another view as well. I am using CloseViewModelAsync to close view from view model.
This is happening only when I move my focus from application to another application (for example, move focus to visual studio) while the operation is progressing.
The auto closing of first view is not affecting the view in which user works if the user continues to work on the application.
Probably the first one is considered the "main window" of the app. As soon as that closes, all windows will close and the app will exit. You can change the shutdown mode of the app manually.
If this is not the case, we need a repro because I can't really extract sufficient info from this report.