问题描述
我正在使用visual studio 2010(限于Net 4.0)开发Windows 8应用程序。我使用自定义InkCanvas与自定义DynamicRenderer。我想区分用户触摸屏幕与自定义DynamicRenderer中的笔写。
只是猜测,但似乎我应该能够分辨出差异
OnStylusDown(RawStylusInput rawStylusInput){}
但是我可以得到的是StylusDeviceID或者TabletDeviceID,当我认为我需要某种类型的contextID的顺序。
我相信有办法...但我似乎无法找到它。
感谢您的任何建议!
I am working on a windows 8 application using visual studio 2010 (limited to Net 4.0). I am using a custom InkCanvas with a custom DynamicRenderer. I would like to differentiate between the user touching the screen versus pen writing within the custom DynamicRenderer.
Just guessing, but it seems that I should be able to tell the difference immediately within
OnStylusDown(RawStylusInput rawStylusInput) {}
but all I can get to is a StylusDeviceID or TabletDeviceID when I think I need something on the order of a contextID of some kind.
I am sure there is a way...but I can't seem to find it.
Thanks for any suggestions!
推荐答案
这篇关于如何区分DynamicRenderer中的Touch和Pen输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!