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
640
Get associated xamDockManager from SplitPane
posted

Hi,

 I have the following code (used as part of a unit test), 

 xamDockManager = new XamDockManager();
            splitPane = new SplitPane();

            xamDockManager.Panes.Add(splitPane);

At a later step (where I don't have the xamDockManager reference, only the splitPane), I need to get the xamDockManager where the splitPane belongs. Testing splitPane.Parent gives me null. Is this correct ? Is there other way to get the associated xamDockManager if I only have the splitPane available ?

 

Thanks,
Claudio.

Parents
No Data
Reply
  • 54937
    Offline posted

    If the SplitPane is still part of the XamDockManager then you can use the attached inherited DockManager property to get to it - e.g. XamDockManager.GetDockManager(splitPane).

Children