天马行空  
I ---- Inject 投入 L ---- Loyal 忠诚 O ---- Observant 用心 V ---- Valiant 勇敢 E ---- Enjoyment 喜悦 Y ---- Yes 愿意 O ---- Obligation 责任
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.

  • Standard XAML text controls (such as TextBox, RichTextBox, and PaswordBox) display the touch keyboard by default.
  • Controls derived from standard XAML text controls display the touch keyboard by default.
  • Other controls do not display the touch keyboard by default.
  • On the PC, you can request that the touch keyboard display for a custom control by implementing the TextPattern provider interface (ITextProvider) and the ValuePattern provider interface (IValueProvider). Not supported on Phone.
  • You can request that the touch keyboard not display when focus is programmatically placed on a control.
posted on 2015-10-14 16:31  浅蓝  阅读(290)  评论(0编辑  收藏  举报