Back to Devexpress

XafApplication.SetupComplete Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-786085cf.md

latest6.0 KB
Original Source

XafApplication.SetupComplete Event

Occurs after the XafApplication class instance has been initialized.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<EventArgs> SetupComplete
vb
Public Event SetupComplete As EventHandler(Of EventArgs)

Event Data

The SetupComplete event's data class is EventArgs.

Remarks

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

csharp
// Manage various aspects of the application UI and behavior at the module level.
    application.SetupComplete += Application_SetupComplete;
}

XAF_Non-Persistent-Objects-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Module/Module.cs#L32

csharp
// Manage various aspects of the application UI and behavior at the module level.
    application.SetupComplete += Application_SetupComplete;
}

XAF_Non-Persistent-Objects-Edit-Linked-Persistent-Objects-Demo/CS/EFCore/NonPersistentEditEF/NonPersistentEditEF.Module/Module.cs#L31

csharp
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

csharp
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

csharp
// 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

vb
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

vb
' Manage various aspects of the application UI and behavior at the module level.
    AddHandler application.SetupComplete, AddressOf Application_SetupComplete
End Sub

See Also

SettingUp

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace