Click or drag to resize

IMessageDialogShowAsync Method (String, String, UInt32, UInt32, MessageBoxImage, CauldronUICommandCollection)

Begins an asynchronous operation showing a dialog.

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
Task ShowAsync(
	string title,
	string content,
	uint defaultCommandIndex,
	uint cancelCommandIndex,
	MessageBoxImage messageBoxImage,
	CauldronUICommandCollection commands
)

Parameters

title
Type: SystemString
The title to display on the dialog, if any.
content
Type: SystemString
The message to be displayed to the user.
defaultCommandIndex
Type: SystemUInt32
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.
cancelCommandIndex
Type: SystemUInt32
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.
messageBoxImage
Type: Cauldron.XAMLMessageBoxImage
The icon to show on the dialog
commands
Type: Cauldron.XAMLCauldronUICommandCollection
An array of commands that appear in the command bar of the message dialog. These commands makes the dialog actionable.

Return Value

Type: Task
An object that represents the asynchronous operation.
See Also