I need help adding submenu items to the chartcontrol window like the one shown below.
I am able to get the window and add buttons, but I so not know how to add these buttons as a child menu items.
Do you have a sample code to refer to please?
chartWindow = Window.GetWindow(this.ChartControl.Parent) as Chart;
.
.
// Add the Button to the Chart's Toolbar
chartWindow.MainMenu.Add(myButton);
..
..

Comment