expressappframework-devexpress-dot-expressapp-dot-xafapplication-786085cf.md
Occurs after the XafApplication class instance has been initialized.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public event EventHandler<EventArgs> SetupComplete
Public Event SetupComplete As EventHandler(Of EventArgs)
The SetupComplete event's data class is EventArgs.
Handle this event to customize settings of the XafApplication class instance after it has been initialized via the XafApplication.Setup method.
The WinApplication class instance is used in the Windows Forms application project. This class inherits from the XafApplication class.
Note
When the SetupComplete event is triggered, the Application Model‘s end-user customizations layer is not yet created from the Model.User.xafml file. So, if you need to access the Application Model in its final state, including customizations that a user might have created, handle the XafApplication.LoggedOn event instead.
The following code snippets (auto-collected from DevExpress Examples) contain references to the SetupComplete event.
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.
XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/Module.cs#L31
// Manage various aspects of the application UI and behavior at the module level.
application.SetupComplete += Application_SetupComplete;
}
// Manage various aspects of the application UI and behavior at the module level.
application.SetupComplete += Application_SetupComplete;
}
base.Setup(application);
application.SetupComplete += Application_SetupComplete;
// Manage various aspects of the application UI and behavior at the module level.
xaf-how-to-enforce-password-complexity-in-xaf/CS/Solution161.Module/Module.cs#L24
public override void Setup(XafApplication application) {
application.SetupComplete += new EventHandler<EventArgs>(application_SetupComplete);
base.Setup(application);
XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/CS/NonPersistentObjectsDemo.Module/Module.cs#L36
// Manage various aspects of the application UI and behavior at the module level.
application.SetupComplete += Application_SetupComplete;
}
xaf-how-to-enforce-password-complexity-in-xaf/VB/Solution161.Module/Module.vb#L24
Public Overrides Sub Setup(ByVal application As XafApplication)
AddHandler application.SetupComplete, New EventHandler(Of EventArgs)(AddressOf application_SetupComplete)
MyBase.Setup(application)
XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/Module.vb#L38
' Manage various aspects of the application UI and behavior at the module level.
AddHandler application.SetupComplete, AddressOf Application_SetupComplete
End Sub
See Also