Hi,
How would you handle the following issue?
Setup
I have a DocumentHost control which contains 2 RadPanes (RadPane1 and RadPane2). Each RadPane contains 2 textboxes (Textbox1 and Textbox2). I have subscribed to the GotFocus and LostFocus on each RadPane.
Steps
1. I float RadPane2 and subscribe to the GotFocus and LostFocus of the ToolWindow using the PaneStateChange event.
2. I leave RadPane1 in the DocumentHost.
3. I click on RadPane1 Textbox1 and the RadPane1 GotFocus is fired.
4. I click on RadPane2 Textbox1 and the RadPane2 and ToolWindow GotFocus is fired.
5. I click on RadPane1 Textbox1 and no GotFocus is fired for RadPane1.
6. I click on RadPane2 Textbox1 and no GotFocus is fired for RadPane2.
7. If I click on RadPane1 Textbox2 GotFocus is fired.
Observation
It seems as though I can have one RadPane in the DocumentHost and one floating ToolWindow which both think they have focus at the same time. Shouldn't I only be able to have one RadPane that has focus as any point in time?
Question
How can I work out which pane has focus regardless of where it is located? Unfortunately the RadDocking control does not have an event like this.