IMessageBoxHandler

Ecng.Xaml

Abstraction for showing message boxes. Allows plugging custom implementations.

メソッド

Show(string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) : MessageBoxResult

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.

戻り値: The button pressed by the user.

Show(Window, string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions) : MessageBoxResult

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.

戻り値: The button pressed by the user.