Skip to main content
.NET 8.0+

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

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