Using XamDockManager, I would like to capture when a specific pane changes to or from a floating pane.
Hello,
In order to handle what happens when changing the state of a ContentPane from "Docked" to "Floating" and from "Floating" to "Docked", I can suggest you a couple of approaches.
I. You can create your own attached event, that listens for the PaneLocation property specifically. For more detailed information on this approach, you can take a look at the following threads where a similar behavior has been discussed:
http://ko.infragistics.com/community/forums/p/32103/175463.aspx#175463http://ko.infragistics.com/community/forums/p/13244/49052.aspx#49052
II. You can handle the PaneDragStarting and the PaneDragEnded events of the XamDockManager and save the location information (PaneLocation value) of the respective pane before and after it has been dragged. This way we can determine whether or not the location has changed and if so, was the change from "Docked" to "Floating" or from "Floating" to "Docked".
I have attached a sample application that uses the second suggestion from above and you should be able to use it as a starting point for this approach.
If you have any questions, please let me know.