Inheritance: System.EventArgs
コード例 #1
0
ファイル: DepthView.xaml.cs プロジェクト: InfoStrat/MotionFx
 void HandPointGenerator_UserLost(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "User lost: " + e.Id;
     });
 }
コード例 #2
0
ファイル: DepthView.xaml.cs プロジェクト: InfoStrat/MotionFx
 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
ファイル: DepthView.xaml.cs プロジェクト: InfoStrat/MotionFx
 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
ファイル: DepthView.xaml.cs プロジェクト: InfoStrat/MotionFx
 void HandPointGenerator_PoseRecognized(object sender, UserEventArgs e)
 {
     Dispatcher.Invoke((Action)delegate
     {
         this.txtStatus.Text = "Pose: " + e.Id;
         borderUser.Background = Brushes.Yellow;
     });
 }