将Kinect事件捕获到scatterViewItem [英] Capture Kinect event to a scatterViewItem

查看:67
本文介绍了将Kinect事件捕获到scatterViewItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




b我正在尝试调整MSSurface应用程序以允许使用Kinect 。使用code4fun库,当用户将手伸向屏幕时,我能够从Kinect生成一个事件,但我缺少的是如何触发ScatterViewItem的
触摸或点击事件来获取项目,完成移动后释放它。从kinect骨架模型我可以调整x / y坐标,如果我可以在ScatterViewItem中捕获正确的事件,我可以应用它。并且代码建议将被赞赏...


问候,


Rob


顺便说一句:我在kinect区域问了这个问题并建议在这里发帖而不是...... r

解决方案

如果你有开始和结束坐标,你可以将PointAnimation应用到它的中心,然后在动画完成后删除它(否则它永远不会再移动了。:-()



这有点像黑客但它可能会起作用。


bI'm attempting to adapt a MSSurface application to allow use of a Kinect. Using the code4fun libraries, I'm able to generate an event from the Kinect when a user puts their hand towards the screen, but what I'm missing is how to trigger a ScatterViewItem's touch or click event to grab item, and then release it once finished moving. from the kinect skeleton model I can get adjusted x/y co-ordinates which i could apply if I can trap the right events in the ScatterViewItem.. And code suggestions would be appreciated...

regards,

Rob

BTW: I've asked this question in the kinect area and suggested to post here instead...r

解决方案

If you have the beginning and end coordinates, you could apply a PointAnimation to its center, then remove the animation once it's done (otherwise it won't ever move again. :-( )

It's a bit of a hack but it might work in a pinch.


这篇关于将Kinect事件捕获到scatterViewItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆