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
50
XamDocManager not saving Complex Str having ChildDocManager as a child of Content Pane.
posted

Hi

Im trying to save Layout using XamDockManager.SaveLayout() having str like below:

DockManager

    SplitPane

      TabGroupPane

         ContentPane

            (Having Same str as above as child of Content Pane)

The saved Xml doesn't have child DockMgr or any of the contentPanes. PFA attached a sample.

Could someone please look into it ?

XamDocLayoutsaving_ComplexDocStr.zip
Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Amit,

    Thank you for the attached sample application.

    By default the XamDockManager saves the following information:

    •  Size and location of floating split panes.
    •  Last docked position of content panes.
    •  Width and height of split panes docked within XamDockManager.
    •  Whether a content pane was closed.
    •  The selected pane in a tab group pane.
    •  Order of the panes in the unpinned tab areas.
    •  Orientation of the splitter bars within split panes.
    •  Relative size of panes within a split pane.
    •  Serialization ID of a content pane.

    The behavior that you are describing about the child XamDockManager is expected, since the parent XamDockManager will save all the information that I have mentioned(size, position, state and etc.), but it would not save the content in your scenario the content is child XamDockManager and the information related with it. Please note that if you does not clean or remove the content(Panes,TabGroupPane and etc. of child XDM) you should be able to load it.

    If you want the layout of your child XDM to be saved you have to call it's SaveLayout method.

    You can read additional information about Saving and Loading Layouts in XamDockManager from the following link:

    https://ko.infragistics.com/help/wpf/xamdockmanager-about-saving-and-loading-layouts

    Please let  me know if you have any questions.

    Sincerely,
    Zhivko
    Associate Software Developer

Children
No Data