private void AppBarButtonPause_Click(object sender, RoutedEventArgs e)
        {
            GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage);

            if (source != null)
            {
                source.Pause();
            }
        }
示例#2
0
        private void Play_Click(object sender, RoutedEventArgs e)
        {
            GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage);

            if (source != null)
            {
                source.Start();
            }
        }
示例#3
0
        private void Stop_Click(object sender, RoutedEventArgs e)
        {
            GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage);

            if (source != null)
            {
                source.Stop();
            }
            _progressBar.Value = 0;
        }