Since v11.1 XamDockManager has "AllowMaximizeFloatingWindows".
This is much appreciated but the doubleclick behavior is not exactly what I am looking for.
I would like to intercept the doubleclick on the contentpane's titlebar and toggle the fullscreen property instead of the docking property (like in VS2010). So my questions are:
- How to detect the docking state of a contentpane e.g. docked, floating?
- How to detect the window state of a contentpane e.g. minimized, normal, maximized?
- How to change the docking and window state?
LCIGmbH said: would like to intercept the doubleclick on the contentpane's titlebar and toggle the fullscreen property instead of the docking property (like in VS2010).
With regards to intercepting the double click, there is no event surfaced for this so at best you would have to derive a class from PaneToolWindow, override the OnDoubleClickCaption and do your processing there. To use your derived PaneToolWindow you would need to derive from XamDockManager as well and override the CreatePaneToolWindow factory method.
LCIGmbH said:How to detect the docking state of a contentpane e.g. docked, floating?
LCIGmbH said:How to detect the window state of a contentpane e.g. minimized, normal, maximized?
LCIGmbH said:How to change the docking and window state?
There is no docking state property for a ContentPane as its state is based on where it is located and moving it requires setting up where it will be placed. The only exposed means of changing a pane's location are via it's available ContentPaneCommands - e.g. TogglePinnedState (flips the IsPinned property), ToggleDockedState (toggles between the docked and floating dockable states), ChangeToFloatingOnly (puts the pane into floating window that does not participate in the docking), etc. Aside from that you would need to remove the ContentPane from it's parent and parent it where you wanted it placed.