Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
Key Event « Windows Presentation Foundation « C# / C Sharp
C# / C Sharp
Windows Presentation Foundation
Key Event
1.
Query Left / Right control key
2.
Query Left / Right Shift key
3.
Is Key.CapsLock Toggled
4.
Keyboard.IsKeyToggled
5.
Query Number lock key
6.
Use Keyboard.Focus to set the focus to a Text Field
7.
Programmatically Extract an Element's Style with DefaultStyleKeyProperty
8.
Provide Quick Keyboard Access to Buttons
9.
Reading keyboard modifiers
10.
Reading individual key state with Keyboard.IsKeyDown
11.
Suppress Keyboard and Mouse Events
12.
Use KeyBinding to bind Key event to TextBox.InputBindings
13.
StackPanel PreviewTextInput and PreviewKeyDown
14.
If input is not a number do not handle the key event
15.
On Key Down Handler