Is it possible to programatically stretch the bars?
for example : with this snippet below found here in the forum, I'd like the bars to have a specific stretch value (space between) when the window focuses on the tab.
this.Dispatcher.Invoke(() => { chart = Window.GetWindow(this.ChartControl.Parent) as Chart; foreach (System.Windows.Controls.TabItem tab in chart.MainTabControl.Items) { tabName = tab.Header.ToString(); if (tab.Header.ToString().Contains(BarsPeriods[0].ToString()) ) { tab.Focus(); // break; } } });
Comment