Back to Devexpress

XafApplication.CreateCustomLogonWindowControllers Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-2a2df452.md

latest3.6 KB
Original Source

XafApplication.CreateCustomLogonWindowControllers Event

Occurs when creating Controllers for a Logon Window.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<CreateCustomLogonWindowControllersEventArgs> CreateCustomLogonWindowControllers
vb
Public Event CreateCustomLogonWindowControllers As EventHandler(Of CreateCustomLogonWindowControllersEventArgs)

Event Data

The CreateCustomLogonWindowControllers event's data class is CreateCustomLogonWindowControllersEventArgs. The following properties provide information specific to this event:

PropertyDescription
ControllersSpecifies custom Controllers that must be created in the Logon Window in addition to system Controllers.

Remarks

A limited set of required built-in Controllers is activated for a Logon Window (e.g., FillActionContainersController , DiagnosticInfoController , Controllers of the Validation and Conditional Appearance modules, etc.). Handle this event to create the required Controllers in addition to the system’s Controllers. Add these Controllers to the list passed as the handler’s Controllers parameter. An example of handling the CreateCustomLogonWindowControllers event is provided in the Logon Form Controllers and Actions topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateCustomLogonWindowControllers 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_logon-form-manage-users-register-a-new-user-restore-a-password/CS/Security.Extensions/Module.cs#L22

csharp
base.Setup(application);
application.CreateCustomLogonWindowControllers += application_CreateCustomLogonWindowControllers;
application.CreateCustomLogonAction += Application_CreateCustomLogonAction;

See Also

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace