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.
- Kohins asked 11 years ago
- You must login 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,
Andrew
- Andrew Burnett-Thompson answered 11 years ago
- You must login to post comments
Please login first to submit.