Implicit themes in control library

3 posts, 1 answers
  1. Jason D
    Jason D avatar
    82 posts
    Member since:
    Jan 2011

    Posted 10 Oct 2016 Link to this post

    I created a test application with a treeview using implicit themes with the XAML files loaded into project. That works fine. If I move the treeview into a usercontrol in a separate project, it does not work. I tried both methods from here with no success:

    It fails when loading Telerik.Windows.Controls.Navigation.xaml. It doesn't have a problem loading Telerik.Windows.Controls.xaml. The sample in the link

    As a side note, I am doing the same thing with the map control and don't have any issues with it.

    Link to the Project:

    Here's the snippet from the UserControl:

                <ResourceDictionary Source="Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="Themes/Telerik.Windows.Controls.Navigation.xaml"/>

  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    1402 posts

    Posted 11 Oct 2016 Link to this post

    Hello Jason,

    When you define control library that uses third party dlls (as Telerik) you will need to reference those dlls also in the project that uses the control library. In order to resolve the error on your side you can reference the Telerik dlls also in the TelerikWpfApp1.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Jason D
    Jason D avatar
    82 posts
    Member since:
    Jan 2011

    Posted 11 Oct 2016 in reply to Martin Ivanov Link to this post

    Perfect! Thanks very much.
Back to Top