How to close or exit Metro App programmatically using C#

Many people ask how to close their Metro App in C#. The answer is very easy, call this function:

Application.Current.Exit();

You can put the code inside a Click Event Handle like:

private void Close_Click(object sender, RoutedEventArgs e)
{
Application.Current.Exit();
}

Leave a Reply