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
975
What event to handle for autosave-layout?
posted

Hello,

 

i want to save the layout of the dockmanager whenever it is changed. (Panes are moved, pinned, closed etc.)

Which event(s) can i use to trigger saving the layout?

cheers,

kmb

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    Hello KarlMichael,

     

    Thank you for your post. I have been looking into it I can suggest using the Closed and ExecutedCommand events of the ContentPane and also the PaneDragEnd event of the XamDockManager. You can create a style without key for the ContentPane and handle the events there, in order to be able to use one event handlers for each ContentPanes inside the XamDockManager. You can use the ExecutedCommad event of the ContentPane to detect pinning and unpinning of the ContentePanes and the PaneDragEnd event to handle the re-ordering of the panes by dragging them. I have created a sample application for you, that show how you can implement the approach I have suggested.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    AutoSaveLayout.zip
Children