If you perform the following steps on your Docking -> Lazy Loading sample:
- Click Activate -> Create Programmatic ToolWindow 1
- Click on the pin of Programmatic ToolWindow 1 so that it auto-hides
- Hover the mouse over Programmatic ToolWindow 1 so that it is visible - then click the x to close it
- Click on Activate -> Activate Programmatic ToolWindow 1
At this point I would expect Programmatic ToolWindow 1 to be in auto-hide mode, but actually it is docked. I would expect the window to be in auto-hide mode at this point.
When I run this in my application I can see that the ToolWindow State property is auto-hide after I have created the tool window, but as soon as I call Activate the State changes to docked. The behaviour is the same if I call ToolWindow.Activate or ToolWindow.Open.
Is this behaviour by design or is it a bug? If it is by design then would it be possible to change it to have different bevahiour for the Activate and Open methods?