Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

WinApplication Class

Manages a WinForms XAF application.

Namespace: DevExpress.ExpressApp.Win

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

Declaration

public class WinApplication :
    XafApplication,
    ISupportSplashScreen,
    ISupportRunSetupInNewThread

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WinApplication class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Extension Methods

See Also