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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.