application resources

Topics: Prism v2 - Silverlight 2
Jun 11, 2009 at 2:02 PM


Since my App.xaml is in the Shell project and my views are in a different project, when I create a new resource (e.g. a brush....) in Blend, it doesn't write the xaml in App.xaml.

I can see it in Blend though so I can copy-paste manually the code. That works, however visual studio still underlines in red wherever I use the resource because it can't be found.

At runtime of course everything works fine. I was wondering if there is a workaround ? I don't really want to copy-paste manually each time I create a resource.e



Jun 11, 2009 at 8:14 PM

Hi graphicsxp,


You are right. There is an issue related to the problem you mention in the Composite Application Guidance Issue Tracker. You could vote in that thread and the team might take this suggestion into account for a future version. There are also some suggestions in the comments to workaround the issue that might help you.


Hope it helps!


Matias Bonaventura