IMessageBoxService.Show(String, String, MessageButton, MessageIcon, MessageResult) Method
Shows a message box with specified parameters.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
[Browsable(false)]
MessageResult Show(
string messageBoxText,
string caption,
MessageButton button,
MessageIcon icon,
MessageResult defaultResult
)
Parameters
Name | Type | Description |
---|---|---|
messageBoxText | String | A text shown within the message box. |
caption | String | A caption of the message box. |
button | MessageButton | An object of the DevExpress.Mvvm.MessageButton type that is the set of buttons shown within the message box. |
icon | DevExpress.Mvvm.MessageIcon | An object of the DevExpress.Mvvm.MessageIcon type that is the icon shown within the message box. |
defaultResult | MessageResult | An object of the DevExpress.Mvvm.MessageResult type that specifies which message box button is default. A default button is highlighted when a message box is shown. |
Returns
Type | Description |
---|---|
MessageResult | An object of the DevExpress.Mvvm.MessageResult type that is the button the end-user clicked. |
Remarks
To learn more, see DXMessageBoxService.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Show(String, String, MessageButton, MessageIcon, MessageResult) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.