private void image11_MouseUp(object sender, MouseButtonEventArgs e) { CardAnimation AnimateClass = new CardAnimation(CardOne); Grid.SetZIndex(CardOne, 0); AnimateClass.AnimateRight(CardOne); Grid.SetZIndex(CardTwo, 3); AnimateClass.AnimateRight(CardTwo); Grid.SetZIndex(CardThree, 3); AnimateClass.AnimateRight(CardThree); Grid.SetZIndex(CardFour, 3); AnimateClass.AnimateRight(CardFour); Grid.SetZIndex(CardFive, 3); AnimateClass.AnimateRight(CardFive); }
private void CardOne_MouseEnter(object sender, MouseEventArgs e) { CardAnimation animate = new CardAnimation(CardOne); animate.MouseOverAnimation(CardOne, CardTwo, CardThree, CardFour, CardFive, false); }