ParametrizedAction Class
A class implementing an Action that executes custom code when a user enters a value into the Action’s editor.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The ParametrizedAction class inherits the basic functionality of Actions from the ActionBase class.
Use Parametrized Actions to execute custom code when a user enters a value into an Action’s editor.
To access the input value, use the ParametrizedAction.Value property. The value is of the string type by default.
To specify another type for input values (integer or DateTime), use the ParametrizedAction.ValueType property. For each type, XAF displays an appropriate control.
Note
For some value types, an Action Container cannot create an appropriate control. In this case, you have to implement a special Action Container.
Handle the ParametrizedAction.Execute event to execute custom code when a user enters a value into an Action’s editor. Use the handler’s ParametrizedActionExecuteEventArgs.ParameterCurrentValue parameter to access the input value.
For more information about how to add a Parametrized Action to a Controller, refer to the following topic: Add a Parametrized Action.
Note
CodeRush allows you to add Actions and Controllers with a few keystrokes. To learn about the Code Templates for XAF, refer to the following help topic: XAF Templates.
- ASP.NET Core Blazor

- Windows Forms
