Keyboard Handling
Although the mouse provides the most obvious way for a user to interact with a Silverlight application, you can't ignore that other essential input device—the keyboard. Most of the time, you'll rely on controls such as the TextBox, which collects typed-in text without forcing you to pay attention to exactly how that text is entered. However, if you need finer-grained control—for example, if you want to perform validation or provide notifications as the user types—you'll need to pay attention to each individual key press as it happens.
In the following sections, you'll learn how to handle key presses and interpret key-event information. You'll also consider how Silverlight manages control focus, which determines the control that ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.