Back to Devexpress

DashboardDesignerManager.CreateCustomForm Event

expressappframework-devexpress-dot-expressapp-dot-dashboards-dot-win-dot-dashboarddesignermanager.md

latest3.7 KB
Original Source

DashboardDesignerManager.CreateCustomForm Event

Occurs when creating a Form for the DashboardDesigner.

Namespace : DevExpress.ExpressApp.Dashboards.Win

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

NuGet Package : DevExpress.ExpressApp.Dashboards.Win

Declaration

csharp
public event EventHandler<CreateCustomFormEventArgs> CreateCustomForm
vb
Public Event CreateCustomForm As EventHandler(Of CreateCustomFormEventArgs)

Event Data

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

PropertyDescription
FormSpecifies the XtraForm which is created in a DashboardDesignerManager.CreateCustomForm event handler.

Remarks

Handle this event to create a custom XtraForm with the DashboardDesigner. Create and assign a custom form to the CreateCustomFormEventArgs.Form event argument. An example is provided in the How to: Show a Custom Form with the WinForms Dashboard Designer topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateCustomForm 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-how-to-show-a-custom-form-as-the-winforms-dashboard-designer/CS/EF/DashboardCustomFormEF/DashboardCustomFormEF.Win/Controllers/CustomDashboardDesignerFormController.cs#L12

csharp
if(showDashboardDesignerController != null) {
    showDashboardDesignerController.DashboardDesignerManager.CreateCustomForm += Manager_CreateCustomForm;
}

See Also

Access the WinForms Dashboard Designer

DashboardDesignerManager Class

DashboardDesignerManager Members

DevExpress.ExpressApp.Dashboards.Win Namespace