View.ErrorMessages Property
Allows access to the current View‘s message collection.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
| Type | Description |
|---|---|
| DevExpress.ExpressApp.Utils.ErrorMessages | An |
Remarks
Each message contains an image and text associated with a specific property name. For example, the following code snippet adds a tooltip to the Email property in an XAF ASP.NET Core Blazor application:
using DevExpress.ExpressApp;
using MySolution.Module.BusinessObjects;
namespace MySolution.Blazor.Server;
public class ErrorMessageController : ObjectViewController<DetailView, Employee> {
protected override void OnActivated() {
base.OnActivated();
View.ErrorMessages.AddMessage(nameof(Employee.Email),
View.CurrentObject,
"Example: your@email.com");
}
}
The following image demonstrates the result in an ASP.NET Core Blazor application:

The Validation Module‘s ResultsHighlightController uses the ErrorMessages property. For more information, refer to the following topic: Built-in Controllers and Actions in Extra Modules.