Free-form input

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
krylon
Posts: 6
Joined: Wed Sep 04, 2019 11:04 pm

Free-form input

Postby krylon » Tue Nov 26, 2019 1:43 am

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!

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Free-form input

Postby JS-Support @Userware » Tue Nov 26, 2019 2:07 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 4 guests

 

 

cron