IMessageBoxHandler
Ecng.Xaml
Abstraction for showing message boxes. Allows plugging custom implementations.
Methods
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.
Returns: 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.
Returns: The button pressed by the user.