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

Frame(XafApplication, TemplateContext, Controller[]) Constructor

Creates an instance of the Frame class.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public Frame(
    XafApplication application,
    TemplateContext context,
    params Controller[] controllers
)
Public Sub New(
    application As XafApplication,
    context As TemplateContext,
    ParamArray controllers As Controller()
)

Parameters

Name Type Description
application XafApplication

An XafApplication object that can be used manage the current application.

context TemplateContext

A TempalteContext structure that indicates a context for the created Frame. This value is assigned to the Frame.Context property.

controllers Controller[]

A Controller[] array that contains the additional controllers that must be activated for the new Frame.

Remarks

The constructor is used to create and initialize a new Frame object. It sets the Frame.Application and Frame.Context properties and populates the Frame.Controllers collection. Controllers in the ViewController class' inheritance are activated.

Basically, you do not need to create Frames. They are created automatically. You may need to do it manually if you only develop a specific Property Editor or List Editor.

It is recommended that you create a new Frame via the XafApplication.CreateFrame method, rather than using a constructor. This is the common approach for all XAF elements.

See Also