MessageDialog.DefaultCommandIndex Property


Gets or sets the index of the command you want to use as the default. This is the command that fires by default when users press the ENTER key.

Add the commands before you set the index.

 property unsigned int DefaultCommandIndex { unsigned int get(); void set(unsigned int value); };
uint32_t DefaultCommandIndex();

void DefaultCommandIndex(uint32_t value);
public uint DefaultCommandIndex { get; set; }
var uInt32 = messageDialog.defaultCommandIndex;
messageDialog.defaultCommandIndex = uInt32;
Public Property DefaultCommandIndex As UInteger

Property Value


unsigned int


The index of the default command.

Applies to