English 中文(简体)
WPF - Input
  • 时间:2024-11-03

WPF - Input


Previous Page Next Page  

Windows Presentation Foundation (WPF) provides a powerful API with the help of which apppcations can get input from various devices such as mouse, keyboard, and touch panels. In this chapter, we will discuss the following types of input which can be handled in WPF apppcations −

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 handpng 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 abipty to receive input from multiple touchsensitive devices. WPF apppcations can also handle touch input as other input, such as the mouse or keyboard, by raising events when a touch occurs.

Advertisements