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

0
0

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

  • You must to post comments
0
0

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

  • Andrew
    Hi again,Yuriy's already fixed this - there was a bug in the ControlTemplate for GridLinesPanel meaning it was overriding any background set by styles.Was there anything else related to styling? Now that everyone's finally downloaded v2.0 and used it I think we might be pushing a hotfix out quite soon, because there's been a lot of minor upgrade issues.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.