Hi,
I was unclear. What I want is: when clicking an Apply-Button within a toolwindow that has State=AutoHide the toolwindow shall be closed without removing it from layout (auto-hidden)
This works:
- open the toolwindow, click the pin with the mouse to dock the toolwindow and press Apply: toolwindow is auto-hidden (1)
- open the toolwindow and click Apply: the toolwindow is docked (2)
- open the toolwindow and click Apply: the toolwindow becomes a document (3)
Code in viewmodel for Apply functionality:
(1) State=ToolWindow.AutoHide
(2) State=ToolWindow.Docked
(3) State=ToolWindow.Document
This doesn't work:
- open the toolwindow and click Apply: the toolwindow should be auto-hidden (1)
(1) State=ToolWindow.AutoHide
How can I induce the toolwindow to auto-hide itself when pressing the Apply button? I tried IsOpen/IsActive/IsSeleted=False, but this doesn't work.
Thank you
Michael