.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication.MainWindow Property

Provides access to the application's main Window.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[Browsable(false)]
public virtual Window MainWindow { get; }
<Browsable(False)>
Public Overridable ReadOnly Property MainWindow As Window
[Browsable(false)]
public virtual Window MainWindow { get; }
<Browsable(False)>
Public Overridable ReadOnly Property MainWindow As Window
[Browsable(false)]
public virtual Window MainWindow { get; }
<Browsable(False)>
Public Overridable ReadOnly Property MainWindow As Window

Property Value

Type Description
Window

A Window object that represents the current application's main Window.

Property Value

Type Description
Window

A Window object that represents the current application's main Window.

Property Value

Type Description
Window

A Window object that represents the current application's main Window.

Remarks

A main Window is the Window which is first displayed when starting the application (except the logon Window). This Window contains the base features of the application. To determine whether a Window is main use the Window.IsMain property.

You can customize the main Window. For this purpose, access it via the MainWindow property.

See Also