Umut Derbentoğlu
Umut Derbentoğlu

Reputation: 1196

WPF Key_Down Event

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

Answers (1)

Martin Milan
Martin Milan

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

Related Questions