private void btn2_MouseEnter(object sender, MouseEventArgs e) { StackPanel1.Visibility = Visibility.Visible; StackPanel2.Visibility = Visibility.Hidden; StackPanel3.Visibility = Visibility.Hidden; StackPanel4.Visibility = Visibility.Hidden; czy_otwarta_pierwsza = true; czy_otwarta_druga = false; czy_otwarta_trzecia = false; czy_otwarta_czwarta = false; Rectangle1.BeginAnimation(WidthProperty, BorderAnimation1); }
//MouseEnter private void btn1_MouseEnter(object sender, MouseEventArgs e) { if (StackPanel1.Visibility == Visibility.Hidden) { StackPanel1.BeginAnimation(HeightProperty, DropDownAnimation); StackPanel1.BeginAnimation(OpacityProperty, DropDownOpacityAnimation); StackPanel1.Effect.BeginAnimation(OpacityProperty, DropDownOpacityAnimation); } StackPanel1.Visibility = Visibility.Visible; StackPanel2.Visibility = Visibility.Hidden; StackPanel3.Visibility = Visibility.Hidden; StackPanel4.Visibility = Visibility.Hidden; Rectangle1.BeginAnimation(WidthProperty, BorderAnimation1); }
private void btn2_MouseLeave(object sender, MouseEventArgs e) { Rectangle1.BeginAnimation(WidthProperty, BorderAnimation2); }