Focus control across two windows

Jan 21, 2009 at 6:29 AM
Hi,
I have a main windows with a Ribbon control on it, and a tool panel floating around, which makes my app contains two Windows.
There is some command on the Ribbon that is target to the floating tool panel only. I have the command binding on the tool panel. When the focus is on the tool panel, the Ribbon buttons have the correct status(enabled), but after clicking on the Ribbon button, the focus is shifted to the Ribbon immediately, effectively disable the button before the click event is handled. After all, the command is not usable. Is there anything I can do to work around this focus shifting? Thanks!