Input and interactions

April 3, 2026 · View on GitHub

WinUI apps automatically handle a wide variety of inputs and run on a variety of devices—there’s nothing extra you need to do to enable touch input, for example. But there are times when you might want to optimize your app for certain types of input or devices. For example, if you’re creating a painting app, you might want to customize the way you handle pen input.

The design and coding instructions in this section help you customize your WinUI app for specific types of inputs.

:::row::: :::column:::

Input primer

Familiarize yourself with each input device type and its behaviors, capabilities, and limitations when paired with certain form factors.

:::column-end::: :::column:::

Gaze input

Track a user's gaze based on the location and movement of their eyes and head.

:::column-end::: :::row-end:::

:::row::: :::column:::

Input

Identify input devices
Pointer
Pen and Windows Ink
Touch
Mouse
Keyboard
Gamepad and remote control
Touchpad
Surface Dial
Multiple inputs
Input injection
Custom text input
:::column-end::: :::column:::

Interactions

Drag and drop
Panning
Rotation
Selecting text and images
Targeting
Visual feedback
:::column-end::: :::column:::

Speech and AI

Speech
Cortana
:::column-end::: :::row-end:::