Displays a message box that has a message, title bar caption, button and icon; and calls back with the result.
Namespace:
C1.WPFAssembly: C1.WPF (in C1.WPF.dll)
Syntax
C# |
---|
public static void Show( string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon, Action<MessageBoxResult> callback ) |
Visual Basic |
---|
Public Shared Sub Show ( _ message As String, _ caption As String, _ button As C1MessageBoxButton, _ icon As C1MessageBoxIcon, _ callback As Action(Of MessageBoxResult) _ ) |
Parameters
- message
- Type: System..::..String
The text to display as a message.
- caption
- Type: System..::..String
The title bar caption.
- button
- Type: C1.WPF..::..C1MessageBoxButton
A C1MessageBoxButton value that specifies which buttons to display.
- icon
- Type: C1.WPF..::..C1MessageBoxIcon
A C1MessageBoxIcon value that specifies the icon to display.
- callback
- Type: System..::..Action<(Of <(<'MessageBoxResult>)>)>
An Action<(Of <(<'T>)>)> which is called with the result of the message box.