Provides methods used to display message boxes in Windows Forms XAF applications.
This class exposes the Messaging.GetUserChoice and overloaded Messaging.Show methods, used by the WinApplication class to display confirmation messages, message boxes and exceptions (the XtraMessageBox functionality is used by default).
WinApplication uses the Messaging.GetMessaging method to create a Messaging instance. The created instance is assigned to the WinApplication.Messaging property. You can implement a custom Messaging descendant by overriding the ShowCore method and specifying a descendant type via the IModelOptionsWin.Messaging property in the Model Editor (see How to: Implement a Custom Messaging Class). Additionally, you can handle the Messaging.ConfirmationDialogClosed event to execute custom code after the message box is closed.
You can access a Messaging instance from your code and use the GetUserChoice or Show methods when it is required to show a message box in a Windows Forms application (see How to: Customize the Export Action Behavior).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Messaging class.
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.