简体   繁体   English

Kinect v2 Grip手势以选择XAML按钮

[英]Kinect v2 Grip gesture to select xaml button

I have a problem using XAML Buttons and C# with Kinect v2. 我在Kinect v2中使用XAML按钮和C#时遇到问题。 I want to draw a button with three different states, according to default/over/selected, changing according with hand gestures off/over/grip. 我想绘制一个具有三种不同状态的按钮,根据默认值/选中/选中,并根据手势的关闭/选中/抓握进行更改。 I've read the answer in the following post ( Kinect Grip Gesture for Click ), but I don't know how to implement the suggesting code. 我已经阅读了以下帖子( Click的Kinect握笔手势 )中的答案,但是我不知道如何实现建议的代码。 I've also viewed ControlsBasics-WPF solution (from Kinect v2 SDK) but I don't want to use that code because I don't like the hand cursor suggested (I want to simply add a hand image over the tracked joint). 我也查看了ControlsBasics-WPF解决方案(来自Kinect v2 SDK),但是我不想使用该代码,因为我不喜欢建议的手形光标(我只想在跟踪的关节上添加手形图像)。

Could someone help me? 有人可以帮我吗?

Thanks in advance! 提前致谢!

也许像ListBox这样的其他可以握持手势的对象更适合您

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM