Beispiel #1
0
        private void PersonLeaveAnimation()
        {
            stage                      = CaptureStage.Idle;
            Button1Label.Text          = "Empezar";
            Button1Label.Visibility    = Visibility.Collapsed;
            Button1.Visibility         = Visibility.Collapsed;
            Button2Label.Text          = "No";
            Button2Label.Visibility    = Visibility.Collapsed;
            Button2.Visibility         = Visibility.Collapsed;
            BottomPanel.Visibility     = Visibility.Collapsed;
            BottomPanelText.Visibility = Visibility.Collapsed;
            BottomPanelText.Text       = "Ubícate para que tu cabeza se alinee con la imagen. Presiona continuar cuando hayas terminado.";
            SmallLabel.Text            = "Levanta tu mano y presiona el boton para empezar.";
            SmallLabel.Visibility      = Visibility.Collapsed;
            MainLabel.Text             = "Hola!\n¿Ya me conoces?";
            MainLabel.Visibility       = Visibility.Visible;
            VideoCapture.Visibility    = Visibility.Collapsed;
            TemplateImage.Visibility   = Visibility.Collapsed;
            IdentityImage.Visibility   = Visibility.Collapsed;
            ImgReference.Visibility    = Visibility.Collapsed;
            ImgReferenceBG.Visibility  = Visibility.Collapsed;
            BottomPanel.SetValue(Grid.RowProperty, 3);
            BottomPanelText.SetValue(Grid.RowProperty, 3);
            Button1Label.SetValue(Grid.RowProperty, 3);
            Button1.SetValue(Grid.RowProperty, 3);
            Button2Label.SetValue(Grid.RowProperty, 3);
            Button2.SetValue(Grid.RowProperty, 3);

            string[] fromGradient = { "#ffd52941", "#ffe45f42", "#ffee894c", "#fff6b061", "#fffcd581" };
            string[] toGradient   = { "#ff1f719b", "#ff238aad", "#ff33a3bc", "#ff4cbcc9", "#ff6bd5d3" };
            UIAnimations.GradientAnimation(1.0, fromGradient, toGradient, BGCanvas);
        }
Beispiel #2
0
        private void PersonLeaveAnimation()
        {
            ButtonLabel.Text = "Empezar";
            ButtonLabel.SetValue(Grid.RowProperty, 3);
            ButtonLabel.Visibility = Visibility.Collapsed;
            StartButton.SetValue(Grid.RowProperty, 3);
            StartButton.Visibility     = Visibility.Collapsed;
            BottomPanel.Visibility     = Visibility.Collapsed;
            BottomPanelText.Visibility = Visibility.Collapsed;
            BottomPanelText.Text       = "Ubícate para que tu cabeza se alinee con la imagen. Presiona continuar cuando hayas terminado.";
            SmallLabel.Text            = "Levanta tu mano y presiona el boton para empezar.";
            SmallLabel.Visibility      = Visibility.Collapsed;
            MainLabel.Text             = "¿Quieres ayudar a crear un algoritmo de identificación facial?";
            MainLabel.Visibility       = Visibility.Visible;
            VideoCapture.Visibility    = Visibility.Collapsed;
            ImgReference.Visibility    = Visibility.Collapsed;
            ImgReferenceBG.Visibility  = Visibility.Collapsed;
            Timer.Visibility           = Visibility.Collapsed;
            TimerBG.Visibility         = Visibility.Collapsed;
            TemplateImage.Visibility   = Visibility.Visible;

            string[] fromGradient = { "#ffd52941", "#ffe45f42", "#ffee894c", "#fff6b061", "#fffcd581" };
            string[] toGradient   = { "#ff1f719b", "#ff238aad", "#ff33a3bc", "#ff4cbcc9", "#ff6bd5d3" };
            UIAnimations.GradientAnimation(1.0, fromGradient, toGradient, BGCanvas);
        }
Beispiel #3
0
 private void PersonEnterAnimation()
 {
     SmallLabel.Visibility   = Visibility.Visible;
     Button1.Visibility      = Visibility.Visible;
     Button1Label.Visibility = Visibility.Visible;
     string[] fromGradient = { "#ff1f719b", "#ff238aad", "#ff33a3bc", "#ff4cbcc9", "#ff6bd5d3" };
     string[] toGradient   = { "#ffd52941", "#ffe45f42", "#ffee894c", "#fff6b061", "#fffcd581" };
     UIAnimations.GradientAnimation(1.0, fromGradient, toGradient, BGCanvas);
     UIAnimations.FadeInAnimation(1.0, new FrameworkElement[] { Button1, Button1Label, SmallLabel });
 }