MessageDialog.DefaultCommandIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
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
The index of the default command.