Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)