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

How to remove the Annotation menu item from contextmenu

Thread ID:





115946 Mar 4,2014 09:30 AM UTC Mar 6,2014 07:13 AM UTC WPF 1
Tags: Chart
bean dou
Asked On March 4, 2014 09:30 AM UTC

       I want to remove the Annotation menu item from the contextmenu of ChartArea. Is it possible?  Any help will be appreciated.

Karthikeyan V [Syncfusion]
Replied On March 6, 2014 07:13 AM UTC

Hi Bean,


Thank you for using syncfusion products.


We have analysed the reported requirement and this can be achieved with the help of the below code snippet.

Code Snippet [C#]:

Chart1.Areas[0].ContextMenu.Opened += ContextMenu_Opened;


void ContextMenu_Opened(object sender, RoutedEventArgs e)


     ChartAreaContextMenu menu = sender as ChartAreaContextMenu;

     for (int i = 0; i < menu.Items.Count; i++)


         MenuItem item = (MenuItem)menu.Items[i];

         if (item.Header.ToString() == "Add Annotation")





Please let us know if you require further assistance on this.



Karthikeyan V.


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