StaticResource in Silverlight

2 posts, 1 answers
  1. Heiko
    Heiko avatar
    116 posts
    Member since:
    Oct 2012

    Posted 26 Feb 2013 Link to this post


    My Silverlight project is split into many sub-projects. One of them includes all static resources like styles, icons etc. All other projects include this theme-project as a merged dictionary and use it for binding to static resources inside the theme project:

                <ResourceDictionary Source="/Theme;component/Styles/MyTheme.xaml" />
    <telerik:RadWatermarkTextBox x:Name="customerBox"
                         BorderBrush="{StaticResource BlackBrush}" />

    Naturally Visual Studio is complaining about not finding any of these static resources, but there is a little trick for that: adding a file called App.xaml to every sub-project which includes the same ResourceDictionary prevents the warnings.
    But: JustCode seems not to know about this trick and gives a warning for every binding to the static resources in my theme project. R# does NOT complain, but I want to use JustCode in the future since we have a license for that.
    Any idea how to handle all these warnings?

  2. Answer
    Zdravko avatar
    657 posts

    Posted 28 Feb 2013 Link to this post

    Hi Neils,

     Thanks for the feedback.
    We are aware of this issue and we have it logged for fixing.
    Meanwhile, I would suggest ignoring these warnings as a temporary solution.
    Thanks and sorry for the inconvenience.

    the Telerik team
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
  3. DevCraft banner
Back to Top