Pre loader

SciChartSurface height not automatically filling a Grid

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

When I crate a chart in a grid, the chart’s width fills the available horizontal space, but the vertical height of the chart is limited to about 150 pixels.
I don’t want to explicitly set the height but I can’t see what’s causing this problem. Although I’ve solved it in a couple of places it seems to annoyingly recur.

Version
4.2.5.10519
  • You must to post comments
0
0

SciChart by default expands to fit its parent. In WPF a Grid – the children should be full size unless RowDefintions and ColumnDefinitions are set.

Do you have any Grid.RowDefinitions defined with a height of 150? That will cause this.

You can inspect what is causing the sizing using the Snoop WPF tool. Point it at your application and it will yield really useful information about the sizes of elements and what is causing this.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.