Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MessageDialog.Commands | commands property

Applies to Windows and Windows Phone

Gets an array of commands that appear in the command bar of the message dialog. These commands makes the dialog actionable.

Get this array and add UICommand objects that represent your commands to it. If the dialog is currently showing, the commands aren't added to the command bar.

Syntax


var commands = messageDialog.commands;

Property value

Type: IVector<IUICommand> [JavaScript/C++] | System.Collections.Generic.IList<IUICommand> [.NET]

The commands.

Remarks

By default, the array of commands for a dialog is empty. If no commands are appended to this array, then a default "Close" command is shown on the dialog.

To delay interaction with commands for a short period when the dialog is first shown, set the AcceptUserInputAfterDelay option with MessageDialogOptions.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Popups
Windows::UI::Popups [C++]

Metadata

Windows.winmd

See also

MessageDialog

 

 

Show:
© 2014 Microsoft