Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Detecting floating pane change in XamDockManager
posted

Using XamDockManager, I would like to capture when a specific pane changes to or from a floating pane.

  • 6365
    Offline posted

    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#175463
    http://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.

    XamDockManager_panes.zip