Share via


MessageDialog.Commands Property

Definition

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.

public:
 property IVector<IUICommand ^> ^ Commands { IVector<IUICommand ^> ^ get(); };
IVector<IUICommand> Commands();
public IList<IUICommand> Commands { get; }
var iVector = messageDialog.commands;
Public ReadOnly Property Commands As IList(Of IUICommand)

Property Value

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.

Applies to