Ejemplo n.º 1
0
        private void ID_Box_GotFocus(object sender, RoutedEventArgs e)          //ID박스에 포커스 맞춰지면
        {
            DoubleAnimation doubleAnimation = new DoubleAnimation();

            doubleAnimation.From     = 0;
            doubleAnimation.To       = 1;
            doubleAnimation.Duration = TimeSpan.FromSeconds(0.3);
            Back.BorderThickness     = new Thickness(0, 0, 0, 5);
            Back.BorderBrush         = Brushes.Blue;                    //파란색 밑줄
            Back.BeginAnimation(OpacityProperty, doubleAnimation);      //파란색 밑줄 애니메이션
            ID_.Visibility  = Visibility.Collapsed;
            Text.Foreground = Brushes.Blue;                             //글자 파랗게
            Text.BeginAnimation(OpacityProperty, doubleAnimation);      //글자 파랗게 애니메이션
        }
Ejemplo n.º 2
0
        private void PW_Box_GotFocus(object sender, RoutedEventArgs e)
        {
            PW_.Visibility = Visibility.Collapsed;
            DoubleAnimation doubleAnimation = new DoubleAnimation();

            doubleAnimation.From     = 0;
            doubleAnimation.To       = 1;
            doubleAnimation.Duration = TimeSpan.FromSeconds(0.3);
            Back.BorderThickness     = new Thickness(0, 0, 0, 5);
            Back.BorderBrush         = Brushes.Blue;
            Back.BeginAnimation(OpacityProperty, doubleAnimation);
            Text.Foreground = Brushes.Blue;
            Text.BeginAnimation(OpacityProperty, doubleAnimation);
        }