SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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 binding the Visibility property to the charts itemcontainer style, but it only partially helped.
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 asked the question here
but got no answer since then. The project could probably not be uploaded beacuse of the size.
I uploaded it here:
Is this behaviour normal? Is it a bug? Please help.
This does not work for me. If I try binding the Visibility of the SciChartSurface to a IsFirstChartpane property in the pane, when I change the value, the pane only disappears, but the remaining charts does not resize, as i proposed here:
Thanks for your request. Yes this is the expected behavior. SciChartGroup is designed to always show the first pane and allow to hide/show all the other panes. The first IChildPane doesn’t get wrapped into SciChartGroupPane, so you cannot hide it like the other panes.
I would suggest binding Visibility of your SciChartSurface in the ItemTemplate to a property which indicates whether it is the main (first) item or not, and hide it if it is. As an example, you could take a look at the BaseChartPaneViewModel.IsFirstChartPane and its usage in the Multipane Stock Charts example.
Does this make sense?
Please login first to submit.