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)
- 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:
This doesn't work:
- open the toolwindow and click Apply: the toolwindow should be auto-hidden (1)
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.