I have no specific answer to your exact problem, however I do have to ask, why 
are you unit testing the shell?
We have patterns like MVVM for just these reasons; you don't want to test the 
UI but the logic behind it.

That said you could always add the style to the Shell.Resources instead...
Steven Nagy
Readify | Senior Developer
M: +61 404 044 513 | E: [email protected]<sip:[email protected]> | 
B: azure.snagy.name<http://azure.snagy.name/>

From: [email protected] [mailto:[email protected]] On 
Behalf Of Stephen Price
Sent: Friday, 18 June 2010 12:47 PM
To: ozWPF
Subject: missing resource

Hey all,

Working on some WPF and have hit something I'm sure is easy but can't seem to 
find an answer on.

I've added a style to the main page and put the new style into a 
MergedDictionary, it works no problems. Where i've come unstuck is there's a 
unit test in another project that creates an instance of the shell. It now 
fails as it can't find the resource. I'm puzzled at how I add it. I tried 
copying the App.xaml file but it gives errors pointing to the fact the project 
doesn't like there being an ApplicationDefinition.

Just wondering how other people get around this?

cheers,
Stephen
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to