All themes are rendered after specifying just one

2 posts, 0 answers
  1. Diogo
    Diogo avatar
    3 posts
    Member since:
    May 2014

    Posted 12 Apr 2016 Link to this post

    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,


  2. Masha
    Masha avatar
    355 posts

    Posted 15 Apr 2016 Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top