Win10 development series five UWP applications add canvas and voice input support

  

This is the fifth issue of Microsoft Win10 ten development series topic, this issue Microsoft explained the addition of canvas /digital ink writing and voice input for Windows10 UWP application Supported methods. Microsoft said the process of adding natural interactions to Win10 applications would be easier than ever.

Adding Direct Ink Writing Support to Applications Using DirectInk

Although we can use a wide variety of input devices, pen and paper are still people recording information and expressing themselves. The best way. This is partly related to people's early ways of education, but there are also studies showing that writing by hand is more conducive to people's thinking, memory and learning.

In Win10, with the DirectInk platform, developers can easily integrate digital ink writing into their applications. These features are used in Microsoft's Edge browser, OneNote applications, and tablets. Microsoft shows the integration approach with some examples. For example, simply add the following code to your app's UI interface to embed the canvas into the user interface. Then customize the InkPresenter property of the myInkCanvas object to set the supported input methods (finger, stylus, or mouse) and adjust the "brush" properties.

Microsoft also explains how to modify, save (can be saved as a supported GIF animated image) and load the written content with some examples.

Adding voice interactions, but your app is alive

Developers can add four types of voice interactions to the app, namely natural language, command and control, dictation support, and text-to-speech Conversion.

The natural language is the Cortana voice assistant interactive function introduced before; the command and control functions enable the user to directly give the operation instructions to the application through voice. These commands usually require multiple clicks of the mouse or keyboard strokes. Completion; dictation support means that the application can directly generate text according to the user's voice, which is more practical in email or message applications; text-to-speech conversion means that the application can convert text to speech.

Microsoft explained the integration of the above voice interaction function in the Win10 UWP application through an example. Click here to view the original Microsoft blog to learn more.

Copyright © Windows knowledge All Rights Reserved