I haven't yet understood how to work with grids. Taking this example, I would like to know."https://forum.ninjatrader.com/forum/...785#post771785
//Line 83 System.Windows.Controls.Grid chartTraderGrid = ((Window.GetWindow(ChartControl.Parent).FindFirst("ChartWindowChartTraderControl") as ChartTrader).Content as System.Windows.Controls.Grid).Children[0] as System.Windows.Controls.Grid; BuyMarketButton = chartTraderGrid.FindFirst("ChartTraderControlQuickBuyMarketButton") as System.Windows.Controls.Button; SellMarketButton = chartTraderGrid.FindFirst("ChartTraderControlQuickSellMarketButton") as System.Windows.Controls.Button; Print(chartTraderGrid.RowDefinitions.Count);
- Is it possible to find the names "ChartTraderControlQuickSellMarketButton, ChartTraderControlQuickBuyMarketButton..." without using Inspect?
- How do I iterate through the elements (next, previous,last)?
- I have add this line:
Code:
Print(chartTraderGrid.RowDefinitions.Count);
thank for your help
Comment