private void HomeScreen_MouseEnter(object sender, MouseEventArgs e) { UserControlAnimation.FadeInElement(sender, true); //sound effect style 1 VolumeManager.play(@"Resources/Audio/HomeScreenButtonHover.wav"); }
private void nextIdle_MouseUp(object sender, MouseButtonEventArgs e) { if (currentSlideIndex == 1) { PreviousSlideButton.Visibility = Visibility.Visible; } else if (currentSlideIndex == 5) { NextSlideButton.Visibility = Visibility.Hidden; } //move the slide index up and go forward one slide //animate that stuff! UserControlAnimation.FadeInElement(screenShotText[currentSlideIndex - 1], false); currentSlideIndex++; UserControlAnimation.FadeInElement(screenShotText[currentSlideIndex - 1], true); string filename = "HelpPage" + currentSlideIndex + "Storyboard"; Storyboard helpVideoStoryboard = FindResource(filename) as Storyboard; helpVideoStoryboard.Begin(); }
private void previousIdle_MouseUp(object sender, MouseButtonEventArgs e) { //hide previous if we're scrolling to the first image if (currentSlideIndex == 2) { PreviousSlideButton.Visibility = Visibility.Hidden; } //if we're scrolling *from* the last image, show the "next" button else if (currentSlideIndex == 6) { NextSlideButton.Visibility = Visibility.Visible; } //move the slide index down and go back one slide //animate that stuff! UserControlAnimation.FadeInElement(screenShotText[currentSlideIndex - 1], false); currentSlideIndex--; UserControlAnimation.FadeInElement(screenShotText[currentSlideIndex - 1], true); string filename = "HelpPage" + currentSlideIndex + "Storyboard"; Storyboard helpVideoStoryboard = FindResource(filename) as Storyboard; helpVideoStoryboard.Begin(); }
private void HomeScreen_MouseLeave(object sender, MouseEventArgs e) { UserControlAnimation.FadeInElement(sender, false); }