How t use a converter inside a ResourceDictionary?

Just create a new one, if the converter is needed for a Style just use Style. Resources for it. Or you could use element syntax.

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

I have a converter thats works great when I use it as StaticResource on my Window as follows I have a ResourceDictionary that defines my controls ControlTemplates and Styles , I couldn't figure out where to reference my converter as a StaticResource to be able to use it on my styles as follows c# wpf xaml resourcedictionary staticresource link|improve this question edited Aug 7 '11 at 9:08 asked Aug 7 '11 at 8:53Musaab1747 91% accept rate.

Yes but I have to do it then on every control style , I want to set it once and apply to all controls , if I have to repeat them o the ResourceDictionary, I could just do it as I stated on the code that in my question post – Musaab Aug 7 '11 at 9:35 @Musaab: If you place something in the Application. Resources in the App. Xaml you can reference it from everywhere using StaticResource, maybe that helps, not quite sure what you mean... – H.B. Aug 7 '11 at 9:37 I'm placing the ResourceDictionary in my App.

Resources,to act as my DynamicResource. If I place also inside App. Resources an Exception occured, I will edit my question to better explain it – Musaab Aug 7 '11 at 9:59 Thanks I found what I'm looking for, usine element syntax – Musaab Aug 7 '11 at 10:15.

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