Implicit Themes 'Resource Not Found' warning

6 posts, 0 answers
  1. Niko
    Niko avatar
    14 posts
    Member since:
    Jul 2012

    Posted 14 Mar 2014 Link to this post

    Hello,

    I just upgraded my WPF solution to the latest Telerik version, 2014.1.224.40. Whenever switching implicit themes I see hundreds of these errors: 

    System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='Telerik.Windows.Controls.InternalResourceKey'; ResourceKey.HashCode='0'; ResourceKey.Type='Telerik.Windows.Controls.InternalResourceKey'

    Also, sometimes when switching themes the application freezes. I'm thinking it's related to the hundreds, if not thousands, of these errors showing in the output window.

    I saw this was noted as fixed in the version notes of 2014.1.224.40, yet I am still seeing it. Any ideas?

    Thanks,
    Niko
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 19 Mar 2014 Link to this post

    Hello Niko,

    I reviewed our source and find several issues that may cause your problems. The fix will be included in our next latest internal build on Monday.

    However to be sure that we are speaking about the same thing, please try to build your application without merging the resources for GridView and RibbonView and let me know whether this clears the warnings that appear.

    Regards,
    Sia
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Niko
    Niko avatar
    14 posts
    Member since:
    Jul 2012

    Posted 01 Apr 2014 in reply to Sia Link to this post

    Hello Sia, thanks for your response.

    I removed the GridView and RibbonView resources from my application, and the warnings still appear. Through trial and error, I removed each Telerik resource one by one to see which was causing the warnings. All warnings seem to trace back to the Telerik.Windows.Controls resource, which makes sense since the warning specifically calls out this resource: "ResourceKey='Telerik.Windows.Controls.InternalResourceKey'".

    I also tried upgrading to the latest internal build, and still no luck. Any help would be appreciated.

    Thanks,
    Niko






  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 04 Apr 2014 Link to this post

    Hello Niko,

    Thank you for the provided information. What comes to my mind is that maybe you merge the ResourceDictionaries on UserControl level but currently we support only merging them on application level - in the App.xaml. This is needed for the themes that support dynamic resources such as Windows8, Windows8Touch and Office2013. We plan to introduce support of merging them on UserControl level with one of our upcoming versions. Please let me know whether this helps. If not - a small runnable application reproducing your issue would be appreciated.

    Regards,
    Sia
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Keith
    Keith avatar
    1 posts
    Member since:
    Apr 2011

    Posted 04 Sep 2014 in reply to Sia Link to this post

    Has this issue since been resolved? I am interested.
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 05 Sep 2014 Link to this post

    Hi Keith,

    The problem has been solved and you may test it with a recent version of UI for WPF. 
    I'm attaching you small sample demo, which you can use for testing purposes. 

    Regards,
    Vanya Pavlova
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready