.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

MessageOptions.OkDelegate Property

Specifies a delegate that is executed when a user clicks a notification message (or if the WinMessageOptions.Type property is set to Flyout in a WinForms application and the OK button is clicked).

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.1.dll


public Action OkDelegate { get; set; }

Property Value

Type Description

A Action that is executed a user clicks the message.


Winforms UI

The code snippet below demonstrates how to use this property.

using DevExpress.ExpressApp;
public class ProjectTaskController : ViewController {
    MessageOptions options = new MessageOptions();
    options.OkDelegate = () => {
        IObjectSpace os = Application.CreateObjectSpace(typeof(ProjectTask));
        DetailView newTaskDetailView = Application.CreateDetailView(os, os.CreateObject<ProjectTask>());

Blazor UI

Use the OkDelegate property to specify a delegate that is executed when a user clicks the notification’s OK button.

See Also