This example describes how to display a custom form as a WinForms Dashboard Designer that is used to create and modify dashboards in WinForms XAF applications. This can be required for menu customization. For example, you may need to add custom BarItems or remove default BarItems.
- Add a new XtraForm or RibbonForm to the project.
- Add DashboardDesigner to the newly created form as it is described in the following topic: Create a WinForms Dashboard Designer (.NET Framework).
- Add a property of the
DashboardDesigner
type to the custom form. - In the Windows Forms module, add a Controller that is activated in the IDashboardData Views only.
- Access the
WinShowDashboardDesignerController
using the Frame.GetController method. - Access the
DashboardDesignerManager
object using theWinShowDashboardDesignerController.DashboardDesignerManager
property. - Handle the
DashboardDesignerManager.CreateCustomForm
event. Create and assign a customXtraForm
to theCreateCustomFormEventArgs.Form
property. For more imformation, refer to the following topic: Access the WinForms Dashboard Designer.
(you will be redirected to DevExpress.com to submit your response)