Floating Radpane Focus

3 posts, 0 answers
  1. Fernando
    Fernando avatar
    17 posts
    Member since:
    Nov 2010

    Posted 08 Mar 2011 Link to this post

    Hello, I have some RadPanes floating. 
    I try this:


    oRadPane.IsSelected=true; 
      
    oRadPane.Focus(); 
     
    In order that some RadPane got focus and see over all.

    If yoy click in header of Pane, this got the focus and see over all, but with code, not.

    Any way to set the "z-index" of floating panes?

    In this sample
    http://www.telerik.com/ClientsFiles/193221_docking-isselected.zip
     
    Is you put both RadPane Floating, and click on "Click Me" button see the problem. The same Radpane is over the other

    Thanks in advance
  2. Fernando
    Fernando avatar
    17 posts
    Member since:
    Nov 2010

    Posted 08 Mar 2011 Link to this post

    I Found the answer :)

    Telerik.Windows.Controls.Docking.ToolWindow  toolWindow = oRadPane.ParentOfType<Telerik.Windows.Controls.Docking.ToolWindow >();
    toolWindow.Focus();
  3. UI for WPF is Visual Studio 2017 Ready
  4. Charlie
    Charlie avatar
    32 posts
    Member since:
    Aug 2010

    Posted 06 Jul 2011 Link to this post

    Got this to work with a subtle change.  Thank you!

    ToolWindow tw = Telerik.Windows.Controls.UIElementExtensions.ParentOfType<ToolWindow>(oRadPane);
    if (tw != null)
        tw.Focus();
Back to Top