This project is read-only.

How to close the MainWindow

Jul 3, 2013 at 4:13 PM
How to close the MainWindow using a button in Usercontrol. The method Close() is not available.
Sorry for my bad English.
Jul 3, 2013 at 4:19 PM
Found a solution.
Application.Current.Shutdown();
Jul 3, 2013 at 6:13 PM
Application.Current has also a reference to MainWindow.

A more generalized version of telling someone something is to use the Messenger of MVVM light (galasoft).