-
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.
-
you definitely did something wrong as I had that code in Visual Studio myself and tested it. I was using SciChart v4
-
Oh ok, I tested it with SciChart v3.6.1. Does this only work with v4?
-
BTW: we have a professional license, is it better to open a support ticket for this?
-
I just put it in a canvas and now it works!
-
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!