AddOnFramework.cs | The name 'ChartControl' does not exist in the current context | CS0103 | 543 | 52 |
here is my snippet where i am getting main chart & chartTrader.
private void performAccountGuardCheck(Account activeAccount) { // get the main chart window // the main chart window chartWindow = System.Windows.Window.GetWindow(ChartControl.Paren t) as Chart; // if not added to a chart, do nothing if (chartWindow == null) return; // this is the grid in the chart window chartGrid = chartWindow.MainTabControl.Parent as Grid; // this is the entire chart trader area grid chartTraderGrid = (chartWindow.FindFirst("ChartWindowChartTraderCont rol") as ChartTrader).Content as Grid; //chartTraderGrid.IsEnabled = false; = }
Comment