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.

0
0

Hi!

I am trying to use SciChartGroupPane and ChildPanes for my application, and
want to collapse a pane , so that the remaining space is filled with the remaining graphs.

I tried to set the visibility to collapsed but, when i do that the panes only disappear,
but the remaining pane does not resize.

As I see the panes have two small buttons on the upper right corner for collapse and close,
This collapse button is similar to what i would want but I have no idea how to reach the collapse
functionality throgh code. Is it possible to collapse a pane withouth removing it from the container
for the ItemTemplate?

Thanks
Chris

Attachments
  • You must to post comments
0
0

Hi Kristóf,

Thanks for your question. You can access the properties of SciChartGroupPane via the ItemContainerStyle property on SciChartGroup.
If you take a look at the “Multi pane stock charts” example, the style for ItemContainerStyle looks like this:

            <Style x:Key="ChartPaneStyle" TargetType="s:SciChartGroupPane">

            <Setter Property="Height" Value="{Binding PaneViewModel.Height, Mode=TwoWay}" />

….

So you should bind the Visibility property here to a property from your ViewModel, just like the Height property is bound.

And concerning the ClosePaneCommand, it is set just to remove a corresponding pane from the ChartPaneViewModels collection (that’s what ItemsSource is bound to). You can find the code in the constructor of CreateMultiPaneStockChartsViewModel.

Hope this helps!

  • You must to post comments
0
0

Hi!

It sort of helped. Now I got all the panes collapsing except for the first one.
I attached a sample project, where I try to collapse all panes but the last one.
I would also need to have the closepane icon the x disappear from the topright
corner of the pane as well. Is there any way to do this?

Thanks
Kristóf

  • You must to post comments
0
0

Hi!
Did you get the project, and the behaviour I was talking about? Is it normal that the
panes behave this way?
Kristóf

  • You must to post comments
0
0

Hi Kristóf,

Thank you for the sample. Please take a look at this thread for my answer.

Best regards,
Yuriy

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.