Back to Devexpress

ActionValidationController Class

expressappframework-devexpress-dot-expressapp-dot-validation-892f298e.md

latest2.7 KB
Original Source

ActionValidationController Class

A Controller descendant that allows Actions to be used as Validation Contexts.

Namespace : DevExpress.ExpressApp.Validation

Assembly : DevExpress.ExpressApp.Validation.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Validation

Declaration

csharp
public class ActionValidationController :
    Controller,
    IModelExtender
vb
Public Class ActionValidationController
    Inherits Controller
    Implements IModelExtender

Remarks

The ActionValidationController extends the Application Model so that Actions can be used as Validation Contexts. The ValidationContexts property is added to the ActionDesign | Actions | <Action> node. Additionally, the Controller adds a handler to the ActionBase.Executing event of each Action. In the event handler, the ActionValidationController invokes the IRuleSet.ValidateAll method.

Generally, there is no need to inherit from the ActionValidationController, unless you want to disable the capability to use Actions as Validation Contexts. In this instance, inherit from the ActionValidationController, and override the protected OnFrameAssigned method, so that its body is empty.

Implements

ISupportUpdate

IModelExtender

Inheritance

Object MarshalByRefObject Component Controller ActionValidationController

See Also

ActionValidationController Members

DevExpress.ExpressApp.Validation Namespace