Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.