📜  WPF-输入

📅  最后修改于: 2020-11-18 09:53:29             🧑  作者: Mango


Windows Presentation Foundation(WPF)提供了功能强大的API,借助该API,应用程序可以从各种设备(例如鼠标,键盘和触摸面板)获取输入。在本章中,我们将讨论以下可以在WPF应用程序中处理的输入类型-

Sr. No. Inputs & Description
1 Mouse

There are different types of mouse inputs such as MouseDown, MouseEnter, MouseLeave, etc.

2 Keyboard

There are many types of keyboard inputs such as KeyDown, KeyUp, TextInput, etc.

3 ContextMenu or RoutedCommands

RoutedCommands enable input handling at a more semantic level. These are actually simple instructions as New, Open, Copy, Cut, and Save.

4 Multi Touch

Windows 7 and its higher versions have the ability to receive input from multiple touchsensitive devices. WPF applications can also handle touch input as other input, such as the mouse or keyboard, by raising events when a touch occurs.