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

Transparent docking window keeps/steals focus

2 Answers 121 Views
Docking
This is a migrated thread and some comments may be shown as answers.
John Schroedl
Top achievements
Rank 2
John Schroedl asked on 19 Nov 2010, 04:44 PM
Hi,

When my app first starts, I am able usually to Tab among the panes in our main window (which uses RadDocking) and their children just fine.

However, after performing a drag rearrangement of the panes if I press Tab it does not work.

Tab also fails if we create a few other top-level windows then activate our main window (which has the docking panes).

I used Spy++ and a utility I created to monitor which Win32 hwnd has focus. I see that for both cases, focus is left in the large transparent window which hosts all the floating panes, compasses and visual cues. 

A workaround is simply to click in the window again but it's confounding to our power users who use the keyboard a lot.

Does anyone have any ideas how we could avoid this?  In my admittedly-limited experience, that transparent window sure seems to be a trouble-maker as there are other problems it causes as well.

John

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Nov 2010, 12:46 PM
Hi John,

I would suggest you to set the focus on the window in the codebehind. I hope this suits your needs. We schedule some major changes of the RadDocking control, but this won't be done until Q1 2011.  

All the best,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Kais
Top achievements
Rank 1
answered on 23 Feb 2011, 10:08 PM
Hi there, 

I don't know if this is related but I found a transparent window called FakePopup.cs in the RadDocking source code. This stole focus when I had docking managers nested inside a tab control & switched tabs. 

If you have a source code license, to resolve this issue you can set Window.ShowWindowActivated to false inside FakePopup.Open() (right before window.Show) and recompile the binaries. 
Tags
Docking
Asked by
John Schroedl
Top achievements
Rank 2
Answers by
George
Telerik team
Kais
Top achievements
Rank 1
Share this question
or