Back to Devexpress

Frame.Controllers Property

expressappframework-devexpress-dot-expressapp-dot-frame-092de46c.md

latest3.3 KB
Original Source

Frame.Controllers Property

Provides access to the Controller collection.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public LightDictionary<Type, Controller> Controllers { get; }
vb
Public ReadOnly Property Controllers As LightDictionary(Of Type, Controller)

Property Value

TypeDescription
DevExpress.ExpressApp.Utils.LightDictionary<Type, Controller>

A LightDictionary<Type, Controller> object representing a Controller collection.

|

Remarks

Each Frame (and Window, consequently) has a Controller collection. To access, add or remove a Controller from this collection, use members of the LightDictionary<Type, Controller> object (Key, Value, Next, AddItem, FindItem, etc.), which is returned by the Controllers property. To access a particular Controller, use the GetController<ControllerType> method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Controllers property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-save-and-share-custom-view-settings/CS/EFCore/ViewSettingsEF/ViewSettingsEF.Module/Controllers/ViewVariantsController.cs#L31

csharp
isLayoutProcessed = true;
foreach(ISupportUpdate controller in Frame.Controllers) {
    controller.BeginUpdate();

xaf-how-to-access-the-master-detailview-information-from-a-nested-listview-controller/CS/EFCore/GetMasterFrameEF/GetMasterFrameEF.Module/Controllers/MasterDetailViewController.cs#L14

csharp
private void PushFrameToNestedController(Frame frame) {
    foreach (Controller c in frame.Controllers) {
        if (c is NestedListViewFrameController) {

See Also

Frame Class

Frame Members

DevExpress.ExpressApp Namespace