Skip to content

DevExpress-Examples/wpf-dashboard-how-to-add-custom-caption-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for WPF - How to Customize the Item's Caption and Context Menu

This example demonstrates how to apply the CaptionCustomizationsTemplate and ContextMenuCustomizationsTemplate templates to customize the caption toolbar and context menu in the WPF Dashboard control.

screenshot

The following properties are used:

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.

Files to Review

Documentation