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

All themes are rendered after specifying just one

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Diogo
Top achievements
Rank 1
Diogo asked on 12 Apr 2016, 02:14 PM

Good afternoon,

In each page of our WPF application we have a few user controls from the Telerik library. We're running the Visual Studio profiler and noticed that for each UC from Telerik, all the themes are being parsed at runtime, as it can be seen from the screenshot attached or at this link.

The theme is being explicitly set at the beginning of the app and we haven't been able to find any help/documentation on this matter.

We would like to prevent this additional render time for each control to achieve the most fluid UI we can.

Any help would be appreciated.

Thanks in advance,

Diogo

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 15 Apr 2016, 11:50 AM
Hello Diogo,

This behavior is possible if you are using StyleManager and Xaml binaries. In order to prevent to render all themes for each control assembly you need to use implicit styles approach and NoXaml binaries. After-that simply merge in App.xaml needed resource dictionaries and you should achieve the desired behavior.


I hope this helps.

Regards,
Masha
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
Diogo
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or