private void CommandInvokedHandler(Windows.UI.Popups.IUICommand command) { // Display message showing the label of the command that was invoked if (command.Label.Equals("Close app")) Application.Current.Exit(); }