How to find a floating RadPane?

2 posts, 0 answers
  1. Mike5
    Mike5 avatar
    7 posts
    Member since:
    Nov 2011

    Posted 02 Feb 2012 Link to this post


    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!

  2. Mike5
    Mike5 avatar
    7 posts
    Member since:
    Nov 2011

    Posted 02 Feb 2012 Link to this post


    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top