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

Style Intended Error

2 Answers 83 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 03 Nov 2016, 10:03 PM

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 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 07 Nov 2016, 08:29 AM
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!
0
Tyler
Top achievements
Rank 1
answered on 07 Nov 2016, 01:22 PM

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

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

Tags
TileView
Asked by
Tyler
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Tyler
Top achievements
Rank 1
Share this question
or