WPFMessageBoxShow Method (Window, String, String, WPFMessageBoxButtons, WPFMessageBoxImage)DW.WPFToolkit Documentation
Displays a message box that has a message and that returns a result.

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public static WPFMessageBoxResult Show(
	Window owner,
	string messageBoxText,
	string caption,
	WPFMessageBoxButtons buttons,
	WPFMessageBoxImage icon
)

Parameters

owner
Type: System.WindowsWindow
A System.Windows.Window that represents the owner window of the message box.
messageBoxText
Type: SystemString
A System.String that specifies the text to display.
caption
Type: SystemString
A System.String that specifies the title bar caption to display.
buttons
Type: DW.WPFToolkit.ControlsWPFMessageBoxButtons
A DW.WPFToolkit.Controls.WPFMessageBoxButtons value that specifies which button or buttons to display.
icon
Type: DW.WPFToolkit.ControlsWPFMessageBoxImage
A DW.WPFToolkit.Controls.WPFMessageBoxImage value that specifies the icon to display.

Return Value

Type: WPFMessageBoxResult
A DW.WPFToolkit.Controls.WPFMessageBoxResult value that specifies which message box button is clicked by the user.
See Also

Reference