In Visual Studio 2010, I can use SendMessageto change the background color in Solution Explorer, as in this question . Since Visual Studio 2012 uses WPF, this method no longer works for me. I can do this with other windows, such as Class View, Data Sources, and Server Explorer, but Solution Explorer does not appear in Spy ++.
I looked at the SDK but did not find anything that would allow me to change the style of this window. Using DTE2, I can get a link to Solution Explorer, but this only looks for hierarchy elements, and not for the actual control of the tree view or window panel.
I came across an example showing how to change the colors of a text editor using an interface IWpfTextViewCreationListener, but since the name suggests that it only works with a text editor. Is there a way to do the same, but for other windows, such as Solution Explorer?
source
share