Interface IMessageBoxHandler
Abstraction for showing message boxes. Allows plugging custom implementations.
public interface IMessageBoxHandler
- Extension Methods
Methods
Show(string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions)
Shows a message box.
MessageBoxResult Show(string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)
Parameters
textstringThe message text.
captionstringThe window caption.
buttonMessageBoxButtonThe buttons to display.
iconMessageBoxImageThe icon to display.
defaultResultMessageBoxResultThe default selected result.
optionsMessageBoxOptionsAdditional display and behavior options.
Returns
- MessageBoxResult
The button pressed by the user.
Show(Window, string, string, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions)
Shows a message box with an explicit owner window.
MessageBoxResult Show(Window owner, string text, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)
Parameters
ownerWindowThe owner window.
textstringThe message text.
captionstringThe window caption.
buttonMessageBoxButtonThe buttons to display.
iconMessageBoxImageThe icon to display.
defaultResultMessageBoxResultThe default selected result.
optionsMessageBoxOptionsAdditional display and behavior options.
Returns
- MessageBoxResult
The button pressed by the user.