This is a migrated thread and some comments may be shown as answers.

Inheriting from RadCartesianChart - implicit themes not working

1 Answer 102 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 22 Sep 2014, 02:20 PM
Hello,

I'm not able to get implicit themes (No Xaml) working when using a class inherited from RadCartesianChart.

The typical way to get this to work would be to add this to the Application's resource dictionary:

<Style TargetType="controls:RadCartesianChartEx" BasedOn="{StaticResource RadCartesianChartStyle}"/>

however, this does not work as there is no RadCartesianChartStyle resource defined in the theme assemblies.  Any ideas how to get this to work?  My inherited charts are not displaying when using the NoXaml libraries.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 22 Sep 2014, 02:39 PM
I got it working... looks like not all of the styles follow the naming convention mentioned in the documentation.  The fix was to use "RadChartBaseStyle" as follows:

<Style TargetType="local:RadCartesianChartEx" BasedOn="{StaticResource RadChartBaseStyle}"/>
Tags
ChartView
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Share this question
or