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.
Unfortunately, activation email could not send to your email. Please try again.

context menu

Thread ID:

Created:

Updated:

Platform:

Replies:

96763 Oct 4,2010 02:23 PM Oct 12,2010 08:11 AM WPF 1
loading
Tags: Chart
shivinder singh
Asked On October 4, 2010 02:23 PM

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 08:11 AM

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.

Regards,
Abdul Rahman









Sample_2d786ec6.zip

CONFIRMATION

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.

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.

;