当前位置:首页 > Windows程序 > 正文

samples学习笔记系列五:Custom user interactions

2021-03-24 Windows程序

标签:

Custom user interactions
Basic input   Complex inking   Inking  
Low latency input   Simple inking   Touch keyboard  

Basic input sample

This sample shows how to handle input in Universal Windows Apps.

Specifically, this sample shows how to:

Listen for events on XAML elements: Use events on XAML elements to listen for various types of input, such as pointer pressed / released, pointer enter / exited, tap / double-tap, and right-tap / press-and-hold.

Retrieve properties about a pointer object: Use a PointerPoint object to retrieve information common to all pointers (such as X/Y coordinates) as well as information specific to the type of input being used (such as mouse wheel information).

Query input capabilities for the system: Use the KeyboardCapabilities, MouseCapabilities, and TouchCapabilities classes to determine what types of input are available on the current system.

Manipulate a XAML element: Use the ManipulationMode property to register for specific manipulation events on XAML elements and react to them in order to move and rotate the element.

Manipulate an object using a GestureRecognizer: Use an instance of a GestureRecognizer to move and rotate an object. This is useful if your app uses its own framework and, thus, cannot use the manipulation events on XAML elements.

Complex inking sample (仅用于c++)

Inking sample (仅用于js)

Low latency input sample (仅用于c++)

Simple inking sample

This sample demonstrates how to use ink functionality (such as capturing ink from user input and performing handwriting recognition on ink strokes) in Universal Windows apps using C#.

Specifically, this sample covers using the Windows.UI.Input.Inking APIs to do the following:

  Capture user input and render as ink strokes

  Save and load ink strokes

  Erase ink strokes

  Change which input types (Mouse/Touch/Pen) are used for inking

  Recognize handwriting from ink strokes

  Select ink strokes

Touch keyboard sample

This sample demonstrates how apps can influence whether the touch keyboard displays when the user taps on a control with the pen or touch.

Windows-universal-samples学习笔记系列五:Custom user interactions

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/66592.html