Skip to main content
.NET 6.0+

ShowViewStrategyBase.ShowMessage(String, InformationType, Int32, InformationPosition) Method

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public void ShowMessage(
    string message,
    InformationType type = InformationType.Success,
    int displayInterval = 3000,
    InformationPosition position = InformationPosition.Bottom
)

Parameters

Name Type Description
message String

A notification message.

Optional Parameters

Name Type Default Description
type InformationType Success

An InformationType value that determines the type of the notification.

displayInterval Int32 3000

An integer that specifies the duration of notification display in milliseconds.

position InformationPosition Bottom

An InformationPosition value that determines the position of the notification window in an ASP.NET Web Forms application. In Windows Forms and ASP.NET Core Blazor applications, this parameter is ignored.

Remarks

Depending on the platform, the ShowMessage method displays text notifications in different ways:

ASP.NET Core Blazor

A custom Alert component.

A Text Notification in XAF ASP.NET Core Blazor Application, DevExpress

Windows Forms

A Toast Notification.

A Text Notification in XAF Windows Forms Application, DevExpress

ASP.NET Web Forms

A dxToast widget displayed at the specified position.

A Text Notification in XAF ASP.NET Web Forms Application, DevExpress

Tip

We recommend that you use the ShowMessage(MessageOptions) method, because it provides more configuration options.

See Also