私はそれをいくつかの異なる方法で変更しようとしましたが、タッチで画面上に描画することができません。
プログラムはこの関数で失敗します
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) '<-- error happens here
e.Handled = True
End If
Return Nothing
End Function
次のエラー Message=TabletPC inking error code が表示されます。_inkManager.ProcessPointerDown(pt) 行での初期化エラー (HRESULT からの例外: 0x80040223)。