Skip to main content
A newer version of this page is available. .

Frame.RegisterController(Controller) Method

Registers a specified Controller within a Frame‘s Frame.Controllers collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public void RegisterController(
    Controller controller
)

Parameters

Name Type Description
controller Controller

A Controller object to be registered within the current Frame‘s Frame.Controllers collection.

Remarks

The RegisterController method is intended for internal use. It adds the Controller specified by the controller parameter to the current Frame‘s Frame.Controllers collection, and sets the Controller.Frame property to this Frame. If the passed Controller is already registered in another Frame, an exception is raised.

Use a Frame’s GetController<ControllerType> method to access a Controller.

See Also