Back to Devexpress

ActionBase.Executed Event

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-427bee29.md

latest4.4 KB
Original Source

ActionBase.Executed Event

Occurs after executing an Action.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[Browsable(false)]
public event EventHandler<ActionBaseEventArgs> Executed
vb
<Browsable(False)>
Public Event Executed As EventHandler(Of ActionBaseEventArgs)

Event Data

The Executed event's data class is ActionBaseEventArgs. The following properties provide information specific to this event:

PropertyDescription
ActionProvides access to the Action being executed.
ShowViewParametersProvides access to the ShowViewParameters object, specifying a View, displayed after executing the current Action.

Remarks

The main entry point of Actions is their Execute event. This event is raised when an end-user performs a predefined operation, which is specified in a different way in each Action type. For instance, if you add an Action of the SimpleAction type, the Execute event is raised when an end-user clicks the button that corresponds to this Action. See the SimpleAction, ParametrizedAction, SingleChoiceAction, PopupWindowShowAction and ActionUrl classes, for details.

The Executed event is raised after the Execute event. Generally, you do not need to handle it, because the Execute event is appropriate for most tasks.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Executed event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-save-the-currently-opened-view-as-a-new-view-variant-at-runtime/CS/EF/ViewVariantSaveEF/ViewVariantSaveEF.Module/Controllers/UserViewVariantsController.cs#L90

csharp
if(changeVariantController != null) {
    changeVariantController.ChangeVariantAction.Executed += ChangeVariantAction_ExecutedCompleted;
}

See Also

ProcessCreatedView

ExecuteCompleted

Customize ShowViewParameters for Built-in Simple Actions

ActionBase Class

ActionBase Members

DevExpress.ExpressApp.Actions Namespace