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

Floating Radpane Focus

2 Answers 152 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 08 Mar 2011, 04:15 PM
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 Answers, 1 is accepted

Sort by
0
Fernando
Top achievements
Rank 1
answered on 08 Mar 2011, 04:45 PM

I Found the answer :)

Telerik.Windows.Controls.Docking.ToolWindow  toolWindow = oRadPane.ParentOfType<Telerik.Windows.Controls.Docking.ToolWindow >();
toolWindow.Focus();
0
Charlie
Top achievements
Rank 2
answered on 06 Jul 2011, 05:00 PM
Got this to work with a subtle change.  Thank you!

ToolWindow tw = Telerik.Windows.Controls.UIElementExtensions.ParentOfType<ToolWindow>(oRadPane);
if (tw != null)
    tw.Focus();
Tags
Docking
Asked by
Fernando
Top achievements
Rank 1
Answers by
Fernando
Top achievements
Rank 1
Charlie
Top achievements
Rank 2
Share this question
or