private void AppBarButtonPause_Click(object sender, RoutedEventArgs e) { GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage); if (source != null) { source.Pause(); } }
private void Play_Click(object sender, RoutedEventArgs e) { GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage); if (source != null) { source.Start(); } }
private void Stop_Click(object sender, RoutedEventArgs e) { GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage); if (source != null) { source.Stop(); } _progressBar.Value = 0; }