Can I add Resources or a ResourceDictionary to a Style?

StackPanel. Resources is not a DependencyProperty and therefore I don't believe you will be able to set that property within the style.

Thanks, I think you're probably right. I can't use a DynamicResource with the Resources property either. – Rachel Nov 23 '10 at 14:46.

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

For example, suppose I wanted to have two different Styles for StackPanels and in one I want all the buttons to be blue and the other I want them to be red. Is this possible? Something like The above code fails with an error about the Property value of a Setter cannot be null (even though it's obviously not null).

I can do something like However I was wondering if there was a way to merge the ResourceDictionary into the style. Wpf xaml styles resourcedictionary link|improve this question edited Aug 13 '11 at 15:54Dave Clemmer1,77331030 asked Nov 22 '10 at 20:17Rachel21.9k11461 95% accept rate.

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