Can I get a WPF ListBox to inherit brushes from parent element?
- by Jay
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?