Pre loader

How to set Grid.Row and Grid.Column for SciChartSurface at Runtime

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

We currently have up to 4 charts that are stacked vertically and the data flows horizontally. However, we need to reverse it so that they are stacked horizontally and the data flows vertically. We currently have a grid setup for the charts to be set to but I can’t seem to figure out how to reset the Grid.Row and Grid.Column of each SciChartSurface at runtime.

Example:
Horizontally, this is how it looks…

<s:SciChartSurface x:Name="sciChartSurface1" Grid.Row="0" Grid.Column="1">

Vertically, it needs to be this…

<s:SciChartSurface x:Name="sciChartSurface1" Grid.Row="1" Grid.Column="0">

Is this possible to do at runtime/from the backend code?

Version
5.0.0.10963
  • You must to post comments
0
0

Hi Brett,

Thanks for your inquiry.
Unfortunately, your question regarding Grid.Row and Grid.Column is a WPF question – not SciChart related. That’s why it goes out of our support scope and we typically don’t answer such questions.
To give you a hint, there is plenty of such info on the internet. For example, here:
https://social.msdn.microsoft.com/Forums/silverlight/en-US/c3fdbc15-f795-414f-af79-d427063c001e/setting-gridrow-in-code-behind-how?forum=silverlightnet

Regarding vertically oriented charts, you can find our “Vertical Charts” example useful. Please take a look:
https://www.scichart.com/example/wpf-chart-example-vertical-charts/

Hope this helps.

With best regards,
Oleksandr

  • Brett Bousman
    Thanks for that info! I’m fairly new to WPF so still learning a few things. As for the vertical charts, we’re also using a SciChartOverview control and when I set it to be vertical, the two sliders are actually horizontal. Is there a way to flip those? I don’t see any properties relating to that in the documentation.
  • Brett Bousman
    Disregard, figured it out.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies