This example demonstrates how to apply the CaptionCustomizationsTemplate and ContextMenuCustomizationsTemplate templates to customize the caption toolbar and context menu in the WPF Dashboard control.
The following properties are used:
- DashboardControl.TitleContent to specify a title text;
- DashboardControl.TitleContentTemplate to specify a data template to display a dashboard title, except command buttons;
- DashboardControl.TitleCustomizationsTemplate to specify a data template to add, delete or modify the dashboard title command buttons;
- DashboardControl.TitleAlignment to specify the title content alignment, except command buttons;
- DashboardControl.TitleVisibility to show or hide the title;
- DashboardControl.ItemGroupStyle to specify a style for dashboard groups (a group is the DashboardLayoutGroup type);
- DashboardControl.DashBoardItemStyle to specify a style for a dashboard item of any type;
- DashboardControl.GridItemStyle to specify a style for the GridDashboardLayoutItem type.
In a dashboard item's custom style, the DashboardLayoutItem.CaptionCustomizationsTemplate property specifies a template for the dashboard item's caption toolbar. The DashboardLayoutItem.ContextMenuCustomizationsTemplate property specifies a template for the dashboard item's context menu.
In a group item's custom style, set the DashboardGroupItem.CaptionCustomizationsTemplate and DashboardGroupItem.ContextMenuCustomizationsTemplate properties, respectively.
The data template in a custom style uses the InsertAction class to insert a button or a drop-down menu. The InsertAction.Index property specifies a position to insert.
(you will be redirected to DevExpress.com to submit your response)