Context Menus from CodeBehind

Feb 15, 2010 at 11:02 AM

Are there any plans on supporting management of context menus from code?  Right now it's not trivial to manage context menus on objects that are dynamically added to the plotter.  Also, weird behavior ensues when changing StaticMenuItems.

For example:

Chart_Composite.MainPlotter.DefaultContextMenu.StaticMenuItems.Clear(); //Doesn't do anything

Chart_Composite.MainPlotter.DefaultContextMenu.StaticMenuItems.Add(NewMenuItem) //Item shows up, but the context menu disappears on mouseover


Thanks for all of the great work, so far this has turned out to be a truly amazing component.  The possibilities are nearly limitless, but it'd really help to be able to manipulate objects through a context menu.