SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Hey guys,
I am setting the GridLinesPanelStyle property of my SciChartSurface to the following Style from the Resources of the parent Border element:
<Style x:Key="GridLinesPanelStyle" TargetType="{x:Type axes:GridLinesPanel}"> <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="None" /> <Setter Property="IsTabStop" Value="False" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderBrush" Value="{StaticResource ChartBorderBrush}" /> </Style>
When snooping down into the “PART_GridLinesArea” I see that the Background is set to #FF353535 from the “Parent Template”. It gets interesting; I can Delve into the Style property of the same element and see my setters from the above snippet of code.
This approach was working pre-SciChart 2.0 and it appears to be the approach being used by the Examples suite as well, but I can’t yet get that running with my licence (there is another thread asking for help to fix this too ;)!).
Thanks for your support,
Miles
Hi guys,
Yes, we have some strange issues going on with the styles. I’ve got it logged as a high priority issue.
During the v1.x -> v2.0 port we pretty much rewrote styles. All of the themes are now dynamic (which is not easy in Silverlight as well as WPF!) and as a result will make it a lot easier to write custom themes (tutorial coming soon :)).
Andy I got your email and I’m aware of the issues. Just bear with us as we handle quite a few upgrade support requests.
Best regards,
Andrew
Please login first to submit.