After a process finishes in my application I want to show a tool window and have it gain focus in order to stay open until the user clicks elsewhere in the application. This tool window is in state AutoHide. When I call toolWindow.Activate(true), the tool windows does show, but the title bar of the tool window remains unselected and it autohides again after a few seconds.
In fact calling toolWindow.Activate(true), toolWindow.Activate(false) or tollWindow.Actrvate() all results in this behavior.
What am I missing?
As an aside, if I - as a user - hover over the tab of the autohidden tool window it will activate. If I then click inside the activated tool window, the titlebar of the tool window changes appearance to selected, and now the tool window will remain open until I click elsewhere. This is the behavior I want to achieve.
[Modified 3 years ago]