IMessageBoxHandler

Ecng.Xaml

Abstraction for showing message boxes. Allows plugging custom implementations.

Methods

Show
public MessageBoxResult Show(string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)
result = iMessageBoxHandler.Show(text, caption, button, icon, defaultResult, options)

Shows a message box.

text
The message text.
caption
The window caption.
button
The buttons to display.
icon
The icon to display.
defaultResult
The default selected result.
options
Additional display and behavior options.

Returns: The button pressed by the user.

Show
public MessageBoxResult Show(Window owner, string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)
result = iMessageBoxHandler.Show(owner, text, caption, button, icon, defaultResult, options)

Shows a message box with an explicit owner window.

owner
The owner window.
text
The message text.
caption
The window caption.
button
The buttons to display.
icon
The icon to display.
defaultResult
The default selected result.
options
Additional display and behavior options.

Returns: The button pressed by the user.