Dela via


UserInteractionMode Enum

Definition

Specifies the UI view, optimized for input device type.

public enum class UserInteractionMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class UserInteractionMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum UserInteractionMode
var value = Windows.UI.ViewManagement.UserInteractionMode.mouse
Public Enum UserInteractionMode
Inheritance
UserInteractionMode
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Mouse 0

The device UI is optimized for mouse input.

Touch 1

The device UI is optimized for touch input.

Remarks

Tablet mode (Windows 10 only)

Note

In Windows 11, Tablet mode is removed and new functionality is included for keyboard attach and detach postures.

Some devices (PC, laptop, tablet) support both a Desktop and Tablet mode.

On Windows 10 only, users can switch between running in Tablet mode and Desktop mode by going to Settings > System > Tablet mode and setting Make Windows more touch-friendly when using your device as a tablet.

Applies to

See also