Back to Devexpress

ViewController Class

expressappframework-devexpress-dot-expressapp-71d2aedc.md

latest8.0 KB
Original Source

ViewController Class

A View Controller.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

Remarks

A ViewController class is a descendant of the Controller class. Use it as an ancestor for a custom Controller which is intended to function with a View. View Controllers are registered within both a Window and Frame. You can access the parent Frame using the Controller.Frame property, and its View using the ViewController.View property. The Object Space used by the current View can be accessed via the protected ObjectSpace property. To implement custom code to be performed at runtime, use the Controller’s mechanisms for activation and deactivation, i.e., handle the Controller.Activated and Controller.Deactivated events.

You can specify the Views for which a View Controller will be activated. For this purpose, use the ViewController.TargetObjectType, ViewController.TargetViewId, ViewController.TargetViewNesting and ViewController.TargetViewType properties (see How do I specify in which View (form) a Controller should be activated). You can also prohibit Controller activation for a particular View by overriding the ViewController.OnViewChanging 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 Windows (e.g., customize a Window’s Template or View), use the WindowController class instead of ViewController.

Implements

ISupportUpdate

Inheritance

Show 42 items

Object MarshalByRefObject Component Controller ViewController DeleteObjectsViewController

ExportController

FilterController

LinkUnlinkController

ListViewProcessCurrentObjectController

NewObjectViewController

RecordsNavigationController

RefreshController

PersistenceValidationController

ViewController<ViewType>

PrintingController

ListEditorInplaceEditController

ObjectViewController<ViewType, ObjectType>

ObjectViewController

WinGridReportExportController

WinReportsController

ModificationsController

ProcessDataLockingInfoController

BlazorExportController

BlazorModificationsController

FileAttachmentController

FileAttachmentListViewController

AppearanceController

CloneObjectViewController

WorkingModeSwitchController

BlazorHideDetailViewNewActionController

BlazorHideRefreshActionController

DashboardConfirmationUnsavedChangesController

ExportToXmlController

HasRightsToModifyMemberController

BlazorNewObjectViewController

CloseDetailViewController

WinModificationsController

WinNewObjectViewController

WinExportController

PrintSelectionBaseController

ReportsControllerCore

See Also

ViewController Members

DevExpress.ExpressApp Namespace