My WPF window has a foreground brush installed on the brush from the resource dictionary, and I want all the text in the window to have this color, so I don’t touch the foreground brush with anything else.
Text fields get color Text blocks get color Buttons get color
The list does not receive color, so their contents are not saved.
Is there a way to make Listbox behave like other controls in this regard?
Assuming not, and what is design, what’s the point?
Edit:
It seems my question is not clear enough.
I understand how to create styles and resources and apply them to ListBoxes; I am wondering why I need to do this for certain controls, when I do not need for others - why some inherit properties and others do not - and is there a way to make them all inheritable the same way.
source
share