1
votes

i'm starting to code in wpf/c# + sdk1.7

i just can't add a hover event for the hand cursor, this is my button:

<k:KinectTileButton x:Name="btn3" Canvas.Left="516" Canvas.Top="293" Click="btn3Click"  MouseMove="btn3MouseMove" MouseLeave="btn3MouseLeave" Height="520" Width="524" >

i guess it can't be so hard to do, i mean it's really basic if you pretend to use the hand as a cursor. why it doesn't exist? like MouseMove event.

i've tried with answers given here and still nothing. please help, keep in mind im really new into this!, thanks in advance.

Hand over button event in Kinect SDK 1.7 Kinect SDK 1.7 | Change KinectCursor image and size Kinect detect handpointer hover on tilebutton

1

1 Answers

-1
votes

Check the kinect SDK Samples. There is a button named KinectHoverButton. When you Hover it, it triggers the click event of the button.

<local:KinectHoverButton Grid.Column="0" Style="{StaticResource KinectHoverButtonScrollLeftStyle}" Click="PageLeftButtonClick" IsEnabled="{Binding ElementName=ControlsBasicsWindow, Path=PageLeftEnabled}"/>