SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


Hi I’ve had an issue with upgrading to the new SciChart. I’ve seen this post:
and the post it links to and it says the issue has been resolved but it doesn’t seem to be resolved for me.
Before updating this worked:

<Style TargetType="Custom:GridLinesPanel">
<Setter Property="Background" Value="#FF1D1D1D"/>

Now that seems to be unused and the only way I can get it to work is to do this:

<Style x:Key="GridLinesPanelStyle" TargetType="Custom:GridLinesPanel">
<Setter Property="Background" Value="Transparent" />
<Custom:SciChartSurface x:Name="sciChart" Grid.Row="1" GridLinesPanelStyle="{StaticResource GridLinesPanelStyle}" SeriesSource="{Binding ChartSeries}">

Is this still broken or am I just using it wrong. Thanks.

  • You must to post comments

Hi there,

Hmm, you’re right. I have no idea why the unnamed style in your post does not get applied, but the named one does. Anyway, the issue prior to v2.1.1 was that background was ignored altogether (it was simply not bound in the Control Templates) so that part is fixed. If you are able to set the style via SciChartSurface.GridLinesPanelStyle then it seems a good enough solution.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.