Pre loader

1

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

All Answers » Re: Keep Aspect Ratio of Chart » Comments for "Re: Keep Aspect Ratio of Chart"
  • Julian Heeb
    Hmm, it doesn’t seem to have any effect… What might I doing wrong? I did also set SciChartSurface.HorizontalAlignment=left and VerticalAlignment=Top but it does not seem to help. In a comment to Daniel Reidler below I explained in more detail what I want to achieve.
  • Andrew Burnett-Thompson
    you definitely did something wrong as I had that code in Visual Studio myself and tested it. I was using SciChart v4
  • Julian Heeb
    Oh ok, I tested it with SciChart v3.6.1. Does this only work with v4?
  • Julian Heeb
    BTW: we have a professional license, is it better to open a support ticket for this?
  • Julian Heeb
    I just put it in a canvas and now it works!
  • Andrew Burnett-Thompson
    Hi Julian, great! It’s related to WPF’s layout. Items stretch to fit their parent in Grid, StackPanel, but in a Canvas then the child item dictates the size. I’d suggest taking a bit more of a look on WPF Layout + Stretch to fit behaviour. Also, support ticket vs. forum, its preference really! Simple ‘how do I …’ questions are very well suited to the forum and can help others. But so can this! So public / private its up to you!