Skip to main content
.NET 6.0+

Window Class

Serves as the base class for Windows.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public class Window :
    Frame

Remarks

The Window is a Frame descendant. The difference between the Window and Frame classes is that Windows are independent objects. Generally, they represent root Views, while Frames represent nested Views. Like Frames, Windows are constructed automatically by XAF, and except in very rare cases, like implementing a custom Property Editor, displaying a pop-up Window, you do not need to instantiate them manually.

The Window class is the base class from which all Window classes derive. The WinWindow descendant is used in Windows Forms applications and the WebWindow descendant is used in ASP.NET Web Forms applications. An additional PopupWindow is used in ASP.NET Web Forms applications, to display pop-up Windows.

You can access the current Window from a Window Controller via its WindowController.Window property. Using the retrieved Window, you can access all Controllers created for the current Window via the Frame.Controllers property. To access the control representing a Window in a UI, use the Window.Template property.

For additional information on Windows, refer to the Windows and Frames help topic.

Inheritance

See Also