C # WPF Button

I realized there is a way to check if the key is pressed?

I want to achieve something like a text editor, I have finished most of the parts. Now when I click the button, I have a function under the element PreviewKeyUpand the other PreviewKeyDown... Is there something like PreviewKeyClickor KeyClick?

PS: I use visual studio 2010 and compile against the .NET Framework 3.5 ... I know that I can use 4.0, but 3.5 due to restrictions on the client PC. The application is intended for a specific client, and I can not update the .NET Framework on the client machine. If you need more information, feel free to ask.

+3
source share
2 answers

, TextInput ( PreviewTextInput) KeyDown/PreviewKeyDown. , TextInput.

+2

KeyPress - , , . : .

+2

All Articles