Ejemplo n.º 1
0
        private void btn3_MouseEnter(object sender, MouseEventArgs e)
        {
            StackPanel1.Visibility = Visibility.Hidden;
            StackPanel2.Visibility = Visibility.Visible;
            StackPanel3.Visibility = Visibility.Hidden;
            StackPanel4.Visibility = Visibility.Hidden;
            czy_otwarta_pierwsza   = false;
            czy_otwarta_druga      = true;
            czy_otwarta_trzecia    = false;
            czy_otwarta_czwarta    = false;

            Rectangle2.BeginAnimation(WidthProperty, BorderAnimation1);
        }
Ejemplo n.º 2
0
 private void btn2_MouseEnter(object sender, MouseEventArgs e)
 {
     if (StackPanel2.Visibility == Visibility.Hidden)
     {
         StackPanel2.BeginAnimation(HeightProperty, DropDownAnimation);
         StackPanel2.BeginAnimation(OpacityProperty, DropDownOpacityAnimation);
         StackPanel2.Effect.BeginAnimation(OpacityProperty, DropDownOpacityAnimation);
     }
     StackPanel1.Visibility = Visibility.Hidden;
     StackPanel2.Visibility = Visibility.Visible;
     StackPanel3.Visibility = Visibility.Hidden;
     StackPanel4.Visibility = Visibility.Hidden;
     Rectangle2.BeginAnimation(WidthProperty, BorderAnimation1);
 }
Ejemplo n.º 3
0
 private void btn3_MouseLeave(object sender, MouseEventArgs e)
 {
     Rectangle2.BeginAnimation(WidthProperty, BorderAnimation2);
 }