My WPF window has its foreground brush set to a brush from a resource dictionary, and I want all text in the window to have this color, so I don't touch the foreground brush in anything else.
Textboxes get the color
Textblocks get the color
Buttons get the color
Listboxes do not get the color, and so neither do their contents.
Is there any way to get a Listbox to behave like the other controls in this respect?
Assuming not, and that this is by design, what is the rationale?
Edit:
It seems my question is not clear enough.
I understand how to create styles and resources and apply them to ListBox
es; I'm wondering why I need to do this for certain controls when I do not need to for others -- why some inherit properties and others do not -- and whether there is any way to make them all inherit in the same way.