SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Guys I m trying to minimize all child pane in multi-pane charts by default i am not able to do that please help me
i want same like in image attached below.
please reply as soon as possible.
Hi there,
Unfortunately there is no built in way to do this with current implementation of SciChartGroup. But you could use custom SciChartGroup which provides desired behavior:
public class MinimizedSciChartGroup : SciChartGroup
{
private StackPanel _stackPanel;
public MinimizedSciChartGroup()
{
Loaded+=OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
{
foreach (var pane in _stackPanel.Children.OfType<SciChartGroupPane>().ToList())
{
var itemPane = pane.DataContext as ItemPane;
if (itemPane != null)
{
itemPane.ChangeOrientationCommand.Execute(null);
}
}
Loaded -= OnLoaded;
}
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
_stackPanel = GetTemplateChild("PART_StackedContent") as StackPanel;
}
}
Hope it helps!
thanks a lot YURA for replying
sorry i am not able to understand that how to use the above code can you explain it .
Please login first to submit.