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

Can not style charts using Telerik Named Brushes

2 Answers 106 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kacper
Top achievements
Rank 1
Kacper asked on 03 Aug 2016, 07:09 AM

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 Answers, 1 is accepted

Sort by
0
Kacper
Top achievements
Rank 1
answered on 03 Aug 2016, 07:11 AM

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

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

0
Pavel R. Pavlov
Telerik team
answered on 08 Aug 2016, 07:25 AM
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.
Tags
Chart
Asked by
Kacper
Top achievements
Rank 1
Answers by
Kacper
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or