Yet another "Double Click Title Bar Thread".
My requirement is to implement the ability to double click a ToolWindow to Maximise it, and then double click it again to dock it.
I've implemented a beaviour in the style of ToolWindowContainer to be able to double click the title bar to make it floating, and then maximised. That works. The problem arises when I want to detect the double click of the title bar when it is floating.
Now from searching on the forum I found out that you tell Windows that it is a system title bar, and looking through snoop I can see no mouse interactions get through.
To get round this, in my behaviour I register to the WindowState changed event, so when I double click the title bar when floating, it changes the state from Maximise to Normal, which then I can say Dock but I get a "flash" of the Window going normal first, beofre it is docked which is not great on the eye.
Do you think this is the best apporach?