The requested page is not available for the requested platform. You are viewing the content for Default platform.

FrameVariantsEngine.ChangeFrameViewToVariant(Frame, VariantsInfo, VariantInfo) Method

Changes the view variant.

Namespace: DevExpress.ExpressApp.ViewVariantsModule

Assembly: DevExpress.ExpressApp.ViewVariantsModule.v19.1.dll


public void ChangeFrameViewToVariant(
    Frame frame,
    VariantsInfo variantsInfo,
    VariantInfo variantInfo
Public Sub ChangeFrameViewToVariant(
    frame As Frame,
    variantsInfo As VariantsInfo,
    variantInfo As VariantInfo


Name Type Description
frame Frame

A Frame object.

variantsInfo VariantsInfo

A VariantsInfo object that specifies a set of available view variants.

variantInfo VariantInfo

A VariantInfo object that specifies the new view variant.


Modifies the Frame.View value of the passed Frame object and the VariantsInfo.CurrentVariantId value of the passed VariantsInfo object, and saves the current choice via the IVariantsProvider.SaveCurrentVariantId method. Creates a new View object based on the passed VariantInfo object or uses the ListPropertyEditor.RecreateListView if the NestedFrame is passed.

See Also