I was browsing stackoverflow to try to figure out a way to style the GridViewColumns in my ListView. I came across this:
WPF Text Formatting in GridViewColumn
The top answer shows how to style one (1) GridViewColumn. My question is, is there a way to style these GridViewColumns in the Window.Resources so I don’t have to do it for each individual GridViewColumn?
There are a few possibilities:
if you want to use template selectors: create a class, instanciate it in resource dict, and plug it in you gridview column, here’s a little sample
then in your ResourceDictionary
If you don’t want to go through all that trouble, and just what to tweak styles of predefined controls, why not use DataGrid? It has predefined columns, where you can tweak styles per each..