Reputation: 113
I have some problems with focus on WPF. Even though focus is a common problem I couldn't find a solution that works for my problem. Here is the situation:
I have an Editor Software where I can drag documents floating (like in Visual studio). The Save buttons are displayed in the Main window above the Pane where all editor documents are hosted. Now what I would like to do is have one window floating and the other one docked in the document pane. When I want to press the Save button in the main app it steals focus from my floating window and automatically focuses the document in the document pane also the click does nothing else even when I click directly on a button.
How can I keep my application from receiving keyboard focus when there is a floating window? As I would like to keep the floating window my active window but still have access to the save buttons or the menu of the main application?
Any help would be greatly appreciated!
Upvotes: 2
Views: 409