Can not style charts using Telerik Named Brushes

Thread is closed for posting
3 posts, 0 answers
  1. Kacper
    Kacper avatar
    2 posts
    Member since:
    Apr 2016

    Posted 03 Aug 2016 Link to this post


    In our project we are trying to set custom colors to Chart control. Following documentation and SalesDashboard.UWP example in app.xaml we added those lines:

          <telerik:UserThemeResources x:Key="ThemeResource" LightResourcesPath="ms-appx:///Theme/Light.xaml"/>
                    <ResourceDictionary x:Key="Default">
                            <ResourceDictionary Source="ms-appx:///Telerik.UI.Xaml.Chart.UWP/Themes/ThemeResourcesLight.xaml"/>                      
                    </ResourceDictionary> (...)


    When running the app we get exception message: "No custom resource loader set."

    We reference Telerik controls via UI.for.UniversalWindowsPlatform nuget unlike SalesDashboard.UWP example but we changed example to reflect our situation. After changes example is working as expected yet our app is not.





  2. Kacper
    Kacper avatar
    2 posts
    Member since:
    Apr 2016

    Posted 03 Aug 2016 in reply to Kacper Link to this post

    I forgotten to mention that exception is thrown on this line.

     <ResourceDictionary Source="ms-appx:///Telerik.UI.Xaml.Chart.UWP/Themes/ThemeResourcesLight.xaml"/>     

  3. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1237 posts

    Posted 08 Aug 2016 Link to this post

    Hi Kacper,

    We tired to reproduce the reported issue on your side and it seems that the code works as expected. Could you please take e look at the attached project and let us know if the approach you use is alike? If not, we would like to kindly ask you to provide us with additional information about your current setup.

    Pavel Pavlov.
Back to Top