AppStore.App.CommandInvokedHandler C# (CSharp) Method

CommandInvokedHandler() private method

On exiting the app, a message pops up asking, if the user really wants to close the app. On tapping "yes", this method is executed.
private CommandInvokedHandler ( Windows command ) : void
command Windows
return void
        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();
        }