Пример #1
0
 private void OnHandPointerLeave(object sender, HandPointerEventArgs handPointerEventArgs)
 {
     if (!KinectRegion.GetIsPrimaryHandPointerOver(this))
     {
         VisualStateManager.GoToState(this, "Normal", true);
     }
 }
Пример #2
0
 private void OnHandPointerEnter(object sender, HandPointerEventArgs handPointerEventArgs)
 {
     if (KinectRegion.GetIsPrimaryHandPointerOver(this))
     {
         VisualStateManager.GoToState(this, "MouseOver", true);
     }
 }