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

StaticResource in Silverlight

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 26 Feb 2013, 09:59 AM
Hi!

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:

<telerik:RadWindow.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Theme;component/Styles/MyTheme.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</telerik:RadWindow.Resources>
 
...
 
<telerik:RadWatermarkTextBox x:Name="customerBox"
                     BorderThickness="1"
                     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?

Regards
Neils

1 Answer, 1 is accepted

Sort by
0
Accepted
Zdravko
Telerik team
answered on 28 Feb 2013, 01:08 PM
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.

Greetings,
Zdravko
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.
Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Zdravko
Telerik team
Share this question
or