Inheritance: System.EventArgs
示例#1
0
 void HandPointGenerator_UserLost(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "User lost: " + e.Id;
     });
 }
示例#2
0
 void HandPointGenerator_SkeletonReady(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "Skeleton: " + e.Id;
         borderUser.Background = Brushes.Green;
         //AnimateUtility.AnimateElementDouble(borderUser, OpacityProperty, 0.5, 0.0, 2.0);
     });
 }
示例#3
0
 void HandPointGenerator_UserFound(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "User found: " + e.Id;
         borderUser.Background = Brushes.Red;
         borderUser.Opacity = 1.0;
     });
 }
示例#4
0
 void HandPointGenerator_PoseRecognized(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "Pose: " + e.Id;
         borderUser.Background = Brushes.Yellow;
     });
 }