Note that there are some explanatory texts on larger screens.

plurals
  1. PODrawing with Touch in WinRT
    primarykey
    data
    text
    <p>I'm using the following example. <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.input.pointereventhandler?cs-save-lang=1&amp;cs-lang=vb#code-snippet-1" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.input.pointereventhandler?cs-save-lang=1&amp;cs-lang=vb#code-snippet-1</a></p> <p>I've tried modifying it a few different ways but am not able to make touch work to draw with on the screen. </p> <p>The program fails on this function</p> <pre><code>Public Function InkCanvas_PointerPressed(sender As Object, e As PointerRoutedEventArgs) 'Get information about the pointer location Dim pt As PointerPoint = e.GetCurrentPoint(panelcanvas) _previousContactPt = pt.Position 'Accept input only from a pen or mouse with a left button pressed Dim pointerDevType As PointerDeviceType = e.Pointer.PointerDeviceType If ((pointerDevType = PointerDeviceType.Pen Or pointerDevType = PointerDeviceType.Mouse) And pt.Properties.IsLeftButtonPressed) Then 'Pass the point information to the inkmanager _inkManager.ProcessPointerDown(pt) _penID = pt.PointerId e.Handled = True ElseIf (pointerDevType = PointerDeviceType.Touch) Then _touchID = pt.PointerId _inkManager.ProcessPointerDown(pt) '&lt;-- error happens here e.Handled = True End If Return Nothing End Function </code></pre> <p>I get the following error Message=TabletPC inking error code. Initialization failure (Exception from HRESULT: 0x80040223) on the _inkManager.ProcessPointerDown(pt) line.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload