void timer_Tick(object sender, object e) { maxTime--; timeleft.Text = maxTime.ToString(); if (maxTime == 0) { timer.Stop(); //stopStoryboard1(); this.Frame.Navigate(typeof(Zombiescorepage)); } if (maxTime == 9) { Storyboard2.Begin(); } if (maxTime == 8) { Storyboard3.Begin(); } if (maxTime == 7) { Storyboard4.Begin(); } if (maxTime == 6) { Storyboard5.Begin(); } if (maxTime == 5) { Storyboard6.Begin(); } if (maxTime == 4) { Storyboard7.Begin(); } if (maxTime == 3) { Storyboard8.Begin(); } if (maxTime == 2) { Storyboard9.Begin(); } if (maxTime == 1) { Storyboard10.Begin(); } }
private void Image_Tapped(object sender, TappedRoutedEventArgs e) { timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += timer_Tick; timer.Start(); x = x + 1; Storyboard2.Begin(); Storyboard3.Begin(); Storyboard4.Begin(); Storyboard5.Begin(); Storyboard6.Begin(); Storyboard7.Begin(); Storyboard8.Begin(); Storyboard9.Begin(); Storyboard10.Begin(); Storyboard11.Begin(); Storyboard12.Begin(); }
private void textBlock3_MouseLeave(object sender, MouseEventArgs e) { Storyboard10.Begin(); }