XAML Resource 'x' is redundant

3 posts, 0 answers
  1. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 12 Jun 2012 Link to this post

    I updated to JustCode 2012.2.608.4 today and I'm suddenly getting a lot of these "Resource is redundant" messages for items (styles and storyboards) that are clearly single instances.

    Any idea what's up?
  2. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 12 Jun 2012 Link to this post

    Never mind. While not technically redundant, the things they were pointing to were more efficiently managed in the C# code where they were being manipulated. For example, I was creating a storyboard placeholder in the XAML that I then populated and manipulated in code-behind. Now I just make the storyboard in code-behind as well.

    Live and learn.
  3. DevCraft banner
  4. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 15 Jun 2012 Link to this post

    Hello,

    Thank you for your feedback.

    This warning looks for xaml usages only, we don't analyze backend usages with ResourceDictionary["key"].

    I was creating a storyboard placeholder in the XAML that I then populated and manipulated in code-behind.
    This seems to be a widely used approach, so if you don't want to see that warning you can simply turn it off from the options.

    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 the Ultimate Collection trial package. Get it now >>

Back to Top