Back to Devexpress

WindowController Class

expressappframework-devexpress-dot-expressapp-def9d790.md

latest4.3 KB
Original Source

WindowController Class

Represents a Window Controller.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class WindowController :
    Controller
vb
Public Class WindowController
    Inherits Controller

Remarks

A Window Controller class is a descendant of the Controller class. Use it as an ancestor for a custom Controller which is intended to perform features with a Window. To implement custom code to be performed at runtime, use the Controller class’ mechanisms of activation and deactivation, i.e. handle the Controller.Activated and Controller.Deactivated events. Window Controllers are activated in Windows only (not in Frames). You can access the parent Window via the WindowController.Window property.

You can specify the Windows for which a Window Controller will be activated. For this purpose, use the WindowController.TargetWindowType property. You can also prohibit Controller activation for a particular Window by overriding the WindowController.OnWindowChanging method.

Note

CodeRush allows you to add Actions and Controllers with a few keystrokes. To learn about the Code Templates for XAF , refer to the following help topic: XAF Templates.

If you need to implement features with Views only, use the ViewController class as an ancestor. This class is the second descendant of the Controller class, that can be used to implement features.

Implements

ISupportUpdate

Inheritance

Show 16 items

Object MarshalByRefObject Component Controller WindowController PopupWindowTemplateClosingController

PopupWindowTemplateSizeController

NotificationsController

MyDetailsController

DialogController

LogoffController

ShowNavigationItemController

WindowTemplateController

AboutInfoController

WinNotificationsController

PreviewReportDialogController

See Also

WindowController Members

DevExpress.ExpressApp Namespace