WinWindow(XafApplication, TemplateContext, ICollection<Controller>, Boolean, Boolean) Constructor

Creates an instance of the WinWindow class.

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v18.2.dll


public WinWindow(
    XafApplication application,
    TemplateContext context,
    ICollection<Controller> controllers,
    bool isMain,
    bool activateControllersImmediately
Public Sub New(
    application As XafApplication,
    context As TemplateContext,
    controllers As ICollection(Of Controller),
    isMain As Boolean,
    activateControllersImmediately As Boolean


Type Name Description
XafApplication application

An XafApplication object that provides methods and properties to manage the current application. This value is assigned to the Frame.Application property.

TemplateContext context

A TemplateContext object representing the created Window's context. This value is assigned to the Frame.Context property.

ICollection<Controller> controllers

A ICollection<Controller> Controllers collection.

Boolean isMain

true if the created Window is main; otherwise, false. This value is assigned to the Window.IsMain property.

Boolean activateControllersImmediately

true if Controllers are created immediately after the Window has been created and before the Window's Window.Template is created; false if Controllers are created after the Window's Window.Template has been created.


The constructor is used to create and initialize a new WinWindow. The Controllers passed via the controllers parameter are registered within the created Window (see the Frame.RegisterController method description).

This method is not designed to be used directly from your code. The currently set View Strategy creates Windows automatically via the XafApplication.CreateWindow method. For instance, when the main Window is created, the default Show View Strategy activates Window Controllers after the Window's Template is created. For the remaining Windows, Window Controllers are activated before creating the Template.

See Also