Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Messaging Class

Provides methods used to display message boxes in Windows Forms XAF applications.

Namespace: DevExpress.ExpressApp.Win.Core

Assembly: DevExpress.ExpressApp.Win.v24.2.dll

#Declaration

public class Messaging

The following members return Messaging objects:

#Remarks

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).

AskConfirmation_Save

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).

#Inheritance

Object
Messaging
See Also