Skip to main content
.NET 6.0+

Frame.RegisterController(Controller) Method

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

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