You can subscribe to the StateChanged event on the ToolWindow, and in the event handler, verify what is the state of the ToolWindow, and respond accordingly.
e.g:
void toolButtonsVertical_StateChanged( object sender, EventArgs e )
{
ToolWindow toolWindow = sender as ToolWindow;
if( toolWindow.State == ToolWindowState.AutoHide )
{
//do what you need
}
}
Imported from legacy forums. Posted by André (had 278 views)