Back to Devexpress

WinApplication Class

expressappframework-devexpress-dot-expressapp-dot-win-b5667003.md

latest3.6 KB
Original Source

WinApplication Class

Manages a WinForms XAF application.

Namespace : DevExpress.ExpressApp.Win

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

NuGet Packages : DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public class WinApplication :
    XafApplication,
    ISupportSplashScreen,
    ISupportRunSetupInNewThread
vb
Public Class WinApplication
    Inherits XafApplication
    Implements ISupportSplashScreen,
               ISupportRunSetupInNewThread

The following members return WinApplication objects:

Remarks

The WinApplication class is the platform-specific descendant of the XafApplication class. In the WinForms application project, this class is inherited (see WinApplication.cs or WinApplication.vb file). The descendant is instantiated in the Program.Main method (see Program.cs or Program.vb file). You can access the class’ members to perform customizations before the XafApplication.Setup and WinApplication.Start methods are invoked.

Since the WinApplication object can be useful at many points in your code, it must be easily accessed. The following properties, cast to the WinApplication type, provide access to the current WinForms application: ActionBase.Application, Controller.Application, Frame.Application, CustomizePopupWindowParamsEventArgs.Application, CreateCustomTemplateEventArgs.Application, ModuleBase.Application, etc.

Inheritance

Object MarshalByRefObject Component XafApplication WinApplication

See Also

WinApplication Members

Windows Forms Application Life Cycle

Windows Forms Application Creation and Initialization

DevExpress.ExpressApp.Win Namespace