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

0
0

Hi I’ve had an issue with upgrading to the new SciChart. I’ve seen this post:
http://http://www.scichart.com/questions/question/2-0-1-gridlinespanel-background-cannot-be-changed/#post-4501
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"/>
</Style>

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" />
</Style>
<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
0
0

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,
Andrew

  • 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