Pre loader

SciChart WPF doesn't display properly inside of 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


I have a SciChart WPF control which works as expected when it is in a dedicated window, but if I place it inside of a grid it will not display properly. As you can see in the picture below, it displays the background and Axis properly, but the actual chart itself in the center is very tiny. enter image description here


<UserControl …
            <RowDefinition Height="1*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="2*"/>
        <Grid Grid.Row="0">
            Some other stuff
        <GridSplitter Grid.Row="1" Height="5" HorizontalAlignment="Stretch" />
        <s:SciChartSurface Grid.Row="2" x:Name="SciChartSurface">
                <s:DateTimeAxis AxisTitle="Time"/>
                    <s:RubberBandXyZoomModifier />
                    <s:ZoomExtentsModifier />
  • You must to post comments

My mistake, it was actually due to that UserControl being placed inside of a TabControl/TabItem which in turn had a Style/Setter set to the type of image to control the size of the icons used in the tabs. I’ll end up deleting this question so it doesn’t clog up these forums.

  • You must to post comments

I’m not able to reproduce from your code sample with v5.0.010963.

All our examples display a SciChartSurface inside a grid, without problem. Are you sure you’re not doing something else wrong in your application?

  • You must to post comments
Showing 2 results