使用Kinect的WPF悬停状态 [英] WPF Hover State with Kinect

查看:151
本文介绍了使用Kinect的WPF悬停状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kinect是否识别WPF按钮的悬停状态?  如果我在使用Kinect光标悬停按钮时想要显示某些样式文本或图像,可以这样做吗?

Does Kinect recognize the hover state of a WPF button?  If I want some style text or image to appear when I hover a button with a Kinect cursor, is that possible to do?

推荐答案

没有具体的"Kinect"您需要应用于按钮的样式。在ControlsBasis-WPF saple中,查看HandPointerStyles.xml - VisualState x的SingleButtonStyle模板代码:Name =" PointerOver"。像对待任何常规按钮状态一样对待它。

There is no specific "Kinect" styling that you need to apply to a button. In the ControlsBasis-WPF saple, have a look at HandPointerStyles.xml - SingleButtonStyle template code for VisualState x:Name="PointerOver". Treat it as you would any regular button states.


这篇关于使用Kinect的WPF悬停状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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