I have exit command:
void CloseMethod() { //Application.Current.Shutdown(); Environment.Exit(0); } The problem is that when I click the button it hides the GUI but I still see the app open at the task manager same with Application.Current.Shutdown();