Inheriting from RadCartesianChart - implicit themes not working

2 posts, 0 answers
  1. Joe
    Joe avatar
    11 posts
    Member since:
    May 2014

    Posted 22 Sep 2014 Link to this post

    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!
  2. Joe
    Joe avatar
    11 posts
    Member since:
    May 2014

    Posted 22 Sep 2014 in reply to Joe Link to this post

    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}"/>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top