Answer the question
In order to leave comments, you need to log in
WPF: how to close an application?
There is a main window "MainWindow". In it, an instance of the "WindowAdmin" window was created
new WindowAdmin().Show();
Hide();
Answer the question
In order to leave comments, you need to log in
What is the problem with clicking on the window cross?
If you want the MainWindow to close after the WindowAdmin is closed, then call Close, not Hide.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question