We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

context menu

Thread ID:





96763 Oct 4,2010 06:23 PM UTC Oct 12,2010 12:11 PM UTC WPF 1
Tags: Chart
shivinder singh
Asked On October 4, 2010 06:23 PM UTC

I wanted to add my own menu items in context menu in addition to the defaults that are shown when i enable the toolbar. how do i go about this i try just
MenuItem item = new MenuItem();
item.Name = "Test";
item.AddHandler(MenuItem.ClickEvent, new RoutedEventHandler(OnMnItemClick));

but it still gives me the 4 defaults you guys have set.

how do i add more menu items???

Abdul Rahman A.H [Syncfusion]
Replied On October 12, 2010 12:11 PM UTC

Hi Shivinder,

Thanks for your interest on Syncfusion products.

You can add your custom menu items to the default context menu by initializing ChartArea.ContextMenuType = DefaultWithCustom, and adding new menu items to the ChartArea.CustomContextMenuItems.

Please find the attached sample, which demonstrates how to add custom context menu items to the default context menu.

Abdul Rahman



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon