Method ShowMessageDialogAsync
| Edit this page View SourceShowMessageDialogAsync(string, string)
Shows a message dialog
Declaration
public Task ShowMessageDialogAsync(string content, string title = "")
Parameters
Type | Name | Description |
---|---|---|
string | content | The message displayed to the user. |
string | title | The title to display on the dialog, if any. |
Returns
Type | Description |
---|---|
Task | An object that represents the asynchronous operation. |
ShowMessageDialogAsync(string, IList<IUICommand>?, uint, uint, string)
Shows a message dialog
Declaration
public Task<IUICommand> ShowMessageDialogAsync(string content, IList<IUICommand>? commands, uint defaultCommandIndex = 0, uint cancelCommandIndex = 1, string title = "")
Parameters
Type | Name | Description |
---|---|---|
string | content | The message displayed to the user. |
IList<IUICommand> | commands | an array of commands that appear in the command bar of the message dialog. These commands makes the dialog actionable. |
uint | defaultCommandIndex | 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. |
uint | cancelCommandIndex | The index of the command you want to use as the cancel command. This is the command that fires when users press the ESC key. |
string | title | The title to display on the dialog, if any. |
Returns
Type | Description |
---|---|
Task<IUICommand> | An object that represents the asynchronous operation. |