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
355
Want to know how to iterate through the panes of XamDockManager
posted
Hi,
 
I am using XamDockManager in  our application and want to know how to iterate through the panes of xamdocmanager, vertically/horizontally, like a table with row and rowspan, col and colspan ?
 
Thanks,
Mahadev
Parents
No Data
Reply
  • 54937
    Suggested Answer
    Offline posted

    There are no grid like coordinates as the layout of the panes can be very complex - panes can be unpinned, floating, within the documentcontenthost, nested within splitpanes with various orientations, etc. If you want to traverse the panes in some specific manner considering the containing elements then you will probably need to traverse the Panes collection of the XamDockManager. When you traverse that you would then enumerate the Panes collection of each of those SplitPanes. Those objects will be either SplitPane instances (in which case you will likely want to recurse into its Panes collection), TabGroupPane instances (in which case you will want to traverse into the Items collection), ContentPane instances or ContentPanePlaceholder instances (which you can probably ignore). Similarly the Items collection of a TabGroupPane will contain either ContentPane or COntentPanePlaceholder instances.

    If you just want to enumerate all the ContentPane instances within the xamDockManager then you would use the GetPanes method.

Children
No Data