I've done research for a few hours on this. All the people posting about it say just add this line and it'll behave as expected and only change what you want changed (In my case background color) Well That's not the case apparently. Now I can also get this to work if I individually change the color, but I'm trying to not have a million lines of XAML and of course that's how I'm going about changing it because it's not going to change during run time. What happens every time I do what the internet suggests it squishes all my column headers together. Does anyone know the proper way with hopefully only a little bit of XAML change to column headers in a DataGrid all in one code without losing all other styling? I appreciate anything you guys can provide me with to try.
I'm fairly new to WPF and I'm just starting to love it and the only UI element I've used yet to give me any trouble of the many I've used is DataGrid everything else what I use it for seems to be pretty straight forward but I have a feeling DataGrid is going to have a learning curve for more then just this as well. There are so many things you can customize!
I just want to be able to change styles without losing the preset styles when changing a style like in this case that it has to be coded in. Thank you.