Exemplo n.º 1
0
 private void OpacityAnimatedStackPanel_PointerExited(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
 {
     StoryboardFadeOut.Begin();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Fade out a control, opacity to 0.
 /// </summary>
 /// <param name="control">The control to hide.</param>
 public static void FadeOut(Control control)
 {
     Storyboard.SetTarget(FadeOutAnim, control);
     StoryboardFadeOut.Completed += delegate { control.Opacity = 0; control.Visibility = Visibility.Hidden; };
     StoryboardFadeOut.Begin();
 }
Exemplo n.º 3
0
 void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     StoryboardFadeOut.Begin();
 }