private void AppBarButtonPlay_Click(object sender, RoutedEventArgs e) { GifImageSource source = AnimationBehavior.GetGifImageSource(_gifImage); if (source != null) { source.Start(); } }
private void CheckTimer() { if (_source == null) { return; } if (IsAnimating && IsLoaded && IsWindowActivated) { _source.Start(); } else { _source.Stop(); } }