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
315
Determine whether pane is floating or not
posted

Which event should I subscribe to, to get a notification every time a pane's state changes to/from floating?

Is there a event on the xamDockManager itself? Or on the ContentPane?

Thanks in advance,
Patrick

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    The ContentPane exposes a property named PaneLocation which indicates where the pane is currently located. There is currently no event specific to when this property changes but you could create your own attached events similar to what I described here for creating your own Pinned/Unpinned events. You may also be able to use the pane's ExecutedCommand event and check the e.Command against the ContentPaneCommand instances as well as using the PaneDragEnded event which would be invoked when the end user drags a pane to a new location.

Children