Style Intended Error

3 posts, 0 answers
  1. Tyler
    Tyler avatar
    13 posts
    Member since:
    Jun 2016

    Posted 03 Nov Link to this post

    InvalidOperationException: A style intended for type 'Telerik_Windows_Controls_RadTileViewItem_0_123599943' cannot be applied to type 'ContentPresenter'.

    What is this supposed to mean?  This appears to pop up randomly, and now I cannot get it to go away..

  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 07 Nov Link to this post

    Hi Tyler,

    The style you are trying to apply would need to target a RadTileViewItem as its name implies. The exception literally says that you are trying to provide the style to a ContentPresenter element and not the RadTielViewItem itself.
    If you are not adding custom styles to your project can you please elaborate more (better with a code project attached as archive here) how do you reproduce the exception so that we can assist you further.

    Regards,
    Evgenia
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tyler
    Tyler avatar
    13 posts
    Member since:
    Jun 2016

    Posted 07 Nov Link to this post

    Yup, my bad.. I definitely jumped the gun on this one!  :(  

    The custom style was changed and then broke things.   Sowy!

Back to Top