How can I add a ResourceDictionary defined in a subfolder to App.xaml?

Discovered the problem - WPF couldn't find an assembly referenced in GlossyButtons. Xaml, but didn't show the actual error (that there was a problem with the . Xaml) until I had compiled and executed several times.

The error displayed (at first) was that GlossyButtons. Xaml couldn't be located.

Up vote 1 down vote favorite share g+ share fb share tw.

All of the code samples I've found so far reference a Resource Dictionary that's not in a project subfolder (the dictionary is at the root of the project). I have mine in a subfolder, and I can't figure out how to get WPF to find it. This doesn't work... The ASP.Net tilde syntax doesn't seem to work either.

Is this the best way to include a ResourceDictionary in your app so that WPF can find resources? My goal in this particular case is to apply a style defined in GlossyButtons. Xaml to all of the buttons in my app.

Wpf xaml resourcedictionary app. Xaml link|improve this question asked Dec 3 '10 at 20:47Bob Black1,106311 80% accept rate.

Discovered the problem - WPF couldn't find an assembly referenced in GlossyButtons. Xaml, but didn't show the actual error (that there was a problem with the . Xaml) until I had compiled and executed several times.

The error displayed (at first) was that GlossyButtons. Xaml couldn't be located. That was a little confusing.

Try the Pack URI syntax msdn.microsoft.com/en-us/library/aa97006....

I found a few references to that syntax online, but I was able to get it working with just a relative path, like so .... I'm compiling against . Net 4.0 - maybe relative path support is a new feature? – Bob Black Dec 4 '10 at 23:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions