Grid ctGrid = ((chartTrader.FindFirst("ChartWindowChartTraderControl") as ChartTrader).Content as System.Windows.Controls.Grid).Children[1] as System.Windows.Controls.Grid; TextBox tboQuantity = ctGrid.FindFirst("ChartTraderControlQuantityEdit") as TextBox; quantity = Int32.Parse(tboQuantity.Text, NumberStyles.AllowThousands); // FOLLOWING DOES NOT WORK Grid ct2Grid = ((chartTrader.FindFirst("ChartWindowChartTraderControl") as ChartTrader).Content as System.Windows.Controls.Grid).Children[2] as System.Windows.Controls.Grid; ComboBox cboStrategy = ct2Grid.FindFirst("ChartTraderControlATMStrategySelector") as ComboBox; strategy = cboStrategy.SelectedItem.ToString();
I think it does not work because the items in the ATM strategy combobox are not simple text but some undocumented objects for the "i" and "remove" etc. Can you please provide an example of retrieving the ATM Strategy name from the combobox or using any other method available to do it.
Comment