Page 1 of 1

Free-form input

Posted: Tue Nov 26, 2019 1:43 am
by krylon
Hello everyone,

Is it possible allow users to do "free-form" input on mobile/touch devices? Our use case would be users entering their signature.

Thanks!

Re: Free-form input

Posted: Tue Nov 26, 2019 2:07 am
by JS-Support @Userware
Hi,

You can do that in may ways, but some manual coding is required.

One way is to register the PointerPressed, PointerMove, and PointerReleased events and add segments to a Path control to draw. You can re-use some of the code from the "Drag and Drop" demo in the Showcase app, located at:
http://www.cshtml5.com/samples/showcase ... L_Features

Another way is to use the native HTML <canvas> control in conjuction with the LineElement class, as documented at:
http://www.cshtml5.com/links/how-to-use ... anvas.aspx

Regards
JS-Support