Pre loader

SciChart 1.7 – 2.1 GridLinesPanel

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


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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies