IFrameVariantsEngine.ChangeFrameViewToVariant(Frame, VariantsInfo, VariantInfo) Method
In This Article
Changes the view variant.
Namespace: DevExpress.ExpressApp.ViewVariantsModule
Assembly: DevExpress.ExpressApp.ViewVariantsModule.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ViewVariantsModule
#Declaration
void ChangeFrameViewToVariant(
Frame frame,
VariantsInfo variantsInfo,
VariantInfo variantInfo
)
#Parameters
Name | Type | Description |
---|---|---|
frame | Frame | A Frame object. |
variants |
Variants |
A Variants |
variant |
Variant |
A Variant |
#Remarks
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 when required. Creates a new View object based on the passed VariantInfo object or uses the ListPropertyEditor.RecreateListView if the NestedFrame is passed.
See Also