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?
Please tell me how to set a contentpane in XamDockManager to float and also having Minimize and Maximize buttons on the pane?
Sincerely,
Khanh
HI LCIGmbh,
I have created a case for your XamDataTree issue and have sent you an email regarding this issue. Sincerely,
Matt Developer Support Engineer
Well that sounds great but I was using WPF v11.1 (the installer doesn't show me a version but it seems to be build 1002, SR2009 for the .NET part) and following your suggestion I downloaded the latest WPF-SR which is 2053 but after installing I suddenly get problems with code which was running just fine before:
- In XamDataTree.SelectedNodesCollectionChanged: ((NodeSelectionEventArgs)args).CurrentSelectedNodes.Tree.ActiveNode is suddenly null when before it was pointing to the correct element.
- If I ignore this error and temporarily do nothing in this event I get the following error: "An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dllAdditional information: Collection was modified; enumeration operation may not execute."
Where can I report this?
LCIGmbH said: Thanks, that works although I would prefer a more direct approach without writing my own classes which inherits from yours
Thanks, that works although I would prefer a more direct approach without writing my own classes which inherits from yours
You should submit a feature request.
LCIGmbH said: Anyway, the next problem is that once the window is maximized (even when using the maximize button, so this has nothing to do with my modification) when you select the title bar of the maximized window (single click, not drag or doublelick) the windowstate immediately changes back to "normal". First, this is not a normal behavior, I would expect it to be just selected. A doubleclick is normally always necessary to change the window state. Second: how to intercept this and change the behavior? (Should I open a question for that?)
Anyway, the next problem is that once the window is maximized (even when using the maximize button, so this has nothing to do with my modification) when you select the title bar of the maximized window (single click, not drag or doublelick) the windowstate immediately changes back to "normal". First, this is not a normal behavior, I would expect it to be just selected. A doubleclick is normally always necessary to change the window state. Second: how to intercept this and change the behavior? (Should I open a question for that?)