Pre loader

Collapse Pane In GroupPane charts

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.