Reputation: 1196
I have a wpf application. I need to handle key_down event for main window. If a textbox element is focused, window's key_down event doesn't fire. But key_up event works properly (respectively textbox's and window's events fire). How can I achieve this?
Upvotes: 0
Views: 100
Reputation: 6390
Try Preview_Key_Down... (I think that is what it's called).
I'm not a WPF coder, but I think you need to read about Event Tunneling...
Upvotes: 2