Esempio n. 1
0
        /// <summary>
        /// 隐藏掉初始界面,打开第二个二级界面
        /// </summary>
        private void ShowCategorySelection2()
        {
            var animateOpacity = new DoubleAnimation(1, 0, TimeSpan.FromMilliseconds(500));

            animateOpacity.Completed += (o, e) =>
            {
                var mainWin = Application.Current.MainWindow as MainWindow;
                mainWin.ShowCategorySelection2();
                this.Visibility = Visibility.Collapsed;
            };
            this.BeginAnimation(Introduction.OpacityProperty, animateOpacity);
            KinectController.RemoveHandRaisedHandler(this, new EventHandler <HandInputEventArgs>(this.OnHandRaised));
        }
 private void OnHandRaised(object sender, HandInputEventArgs args)
 {
     this.IsHandRaised = true;
     KinectController.RemoveHandRaisedHandler(this, this.OnHandRaised);
 }