共用方式為


Input

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This section describes Silverlight support for user input.

In This Section

  • Mouse Support
    Silverlight provides a set of events that enable your application to respond to mouse (or stylus) actions, such as moving or clicking the mouse (or a stylus). This topic describes each event and how to write handlers for the event.

  • Keyboard Support
    Silverlight provides a set of keyboard events that enable your application to respond to keystroke actions. This topic describes each event and how to write handlers for the event, as well as use support classes.

  • Focus Overview
    Focus is an input system concept that is relevant to controls in Silverlight. The control that is currently focused can receive the keyboard input events KeyUp and KeyDown and can thus use keyboard input. This topic describes general focus principles as well as focus events and the Focus method.

  • How to: Drag and Drop Objects in UI Layout
    Provides example code for positioning an object by "dragging" its position with mouse capture.