Skip to main content

ChangeVariantController Class

Represents a ViewController descendant that contains the ChangeVariant Action.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

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

NuGet Package: DevExpress.ExpressApp.ViewVariantsModule

Declaration

public class ChangeVariantController :
    Controller,
    IFilterActionProvider

Remarks

The ChangeVariantController displays the ChangeVariant Action. This Action allows users to switch between predefined View Variants of a particular business object type.

In a Windows Forms application:

ViewChangeActionInWindow

The ChangeVariantController is shipped with the View Variants module and is activated for all Views. You can use the Model Editor to customize the ChangeVariantController behavior via the ActionDesign | Controllers | DevExpress.ExpressApp.ViewVariantsModule.ChangeVariantController node. The ChangeVariant Action is accessible via the ActionDesign | Actions | ChangeVariant node.

For details on the ChangeVariant Action, refer to the following topic: ChangeVariantController.ChangeVariantAction.

This Controller uses the CurrentFrameViewVariantsManager object to populate the items of the ChangeVariant Action, switch the variant according to an end-user’s selection and save the selected variant. By default, the last chosen variant identifier is stored with user customizations (in the Model.User.xafml file). Use the VariantInfo to display a single variant. Use the VariantsInfo class to display a set of variants available for a particular varied View.

Implements

Inheritance

See Also