This is a migrated thread and some comments may be shown as answers.

How to find a floating RadPane?

1 Answer 113 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mike5
Top achievements
Rank 1
Mike5 asked on 02 Feb 2012, 07:44 PM

This works well for docked RadPanes:

RadPane realPane = null;
IEnumerable<RadPane> childPanes = MainDockingManager01.ChildrenOfType<RadPane>();
 
foreach (var r in childPanes)
    if ((r as RadPane).Title.Equals(theName))
    {
        realPane = r;
        break;
    }
return realPane;

However the enumeration does not contain the target RadPane when the
Pane has been un-docked and is floating.  As a matter of fact, if there is only
one RadPane present, the enumeration of MainDockingManager01.ChildrenOfType<RadPane>
returns an empty set.

How do I find a floating child?  Do I search something other than MainDockingManager01?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Mike5
Top achievements
Rank 1
answered on 02 Feb 2012, 09:12 PM

I found the answer by Reading The Fine Manual.   Upon un-docking, the RadPane
becomes a child of a ToolWindow.  By handling the PaneStateChange event I can
keep track of ToolWindows and, when necessary I can use

MyToolWindowList.ChildrenOfType<RadPane>()

To find the target RadPane.
Tags
Docking
Asked by
Mike5
Top achievements
Rank 1
Answers by
Mike5
Top achievements
Rank 1
Share this question
or