rags Posted December 2, 2015 Report Share Posted December 2, 2015 Hi, After moving to ChartFx 8 from 7, we are having trouble with customizing context menu in the chart.With CFX7, we were able to get the commands of the context menu (Chartfx) and add it to our custom ContextMenuStrip. Then handle the event (ex : Color selection, Point labels) by using the following code. With CFX8, the command CommandsEventArgs, ICommandCollection does not exist anymore. Also noticed that "Chart.UpdateContextMenu" is no longer supported. So my question is what are the replacement APIs for these in CFX8? If there is none, what is the best way to call these internal commands from our context menu. Thanks Rag private void ContextMenu_PerformChartFXCommand(object sender, EventArgs e) { ToolStripItem item = sender as ToolStripItem; CommandInfo commandInfo = (CommandInfo)item.Tag; CommandsEventArgs eventArgs = new CommandsEventArgs(commandInfo.CommandId, commandInfo.SubCommandId); eventArgs.uiObject = commandInfo.UiObject; (this.Chart.Commands as ICommandCollection).OnCommandEvent(eventArgs); if (item is ToolStripMenuItem) { (item as ToolStripMenuItem).Checked = this.Chart.Commands[commandInfo.CommandId].Checked; } Quote Link to comment Share on other sites More sharing options...
Guest K7SN Posted January 23, 2016 Report Share Posted January 23, 2016 I can't seem to get an answer either - My company bought a subscription just for me to evaluate and unless I can get an answer we will have to stay with Chart FX 7 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.