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

Erroneous warning

1 Answer 31 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jan
Top achievements
Rank 1
Jan asked on 11 Aug 2012, 11:19 PM
JustCode creates a warning for an unused XAML resource.

However, the XAML resource is referred to in the code:

myControl.Style = (Style)Resources["MyStyle"];

I understand that it is difficult (or maybe even impossible, given end-user expectations of performance) to check for a resource that may be referred to in code.

Just a heads-up on what is fundamentally a bug though.

Cheers,
Jan

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 16 Aug 2012, 07:38 AM
Hello,

Thank you for your feedback!

Yes, you are right, we don't analyze backend usages of resources. We could improve that in the future, but I can't promise you anything about the time frame.

If you have any other problems or suggestions, please don't hesitate to write back!

Greetings,
Svetlozar
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Code Analysis
Asked by
Jan
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Share this question
or