SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

1
0

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.

Images
  • You must to post comments
1
0

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!

  • You must to post comments
0
0

thanks a lot YURA for replying
sorry i am not able to understand that how to use the above code can you explain it .

  • Yura Khariton
    You just need to replace usage of SciChartGroup control on MinimizedSciChartGroup in XAML and this should do the trick.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.