I am trying to find out why the theme is not respected when the pane is undocked. i.e if you have a docked contentpane and then the user undocks it the border/header does not keep the same coloring as when it was docked.
I'm not sure I follow. By undock, you mean that you floated the pane? If so, then just like VS the floating pane will show the OS caption instead of the pane's caption if its floating by itself or in a single tabgroup.
Yes, I am talking about a floating pane. VS uses the OS theme/Colors for all of it's windows docked or floating. When I apply a theme to the DockManager such as Office2k7Black the contentpane/splitpane header/border is a tone of black but when I float the window the header/border is takes on the color of the OS theme. I would expect that since the user chose a specific theme that the header/borders would always keep the colors provided by the chosen theme.
It doesn't do that since the hosting window and the floating window would end up using different "chrome". If you want that with our office themes then you can hook the ToolWindowLoaded and set the e.Window.UseOSNonClientArea to false.
Thanks for that information that does make sense but the question was asked so I needed some kind of answer to respond with.