Can not style charts using Telerik Named Brushes

3 posts, 0 answers
  1. Kacper
    Kacper avatar
    2 posts
    Member since:
    Apr 2016

    Posted 03 Aug Link to this post

    Hello,

    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.ThemeDictionaries>
                    <ResourceDictionary x:Key="Default">
                        <ResourceDictionary.MergedDictionaries>
                            <ResourceDictionary Source="ms-appx:///Telerik.UI.Xaml.Chart.UWP/Themes/ThemeResourcesLight.xaml"/>                      
                        </ResourceDictionary.MergedDictionaries>
                    </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.

     

    Regards

    Kacper

     

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

    Posted 03 Aug 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
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 08 Aug 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.


    Regards,
    Pavel Pavlov.
Back to Top