Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created January 13, 2016 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/8b449615e601f61d567b to your computer and use it in GitHub Desktop.
Save kevingosse/8b449615e601f61d567b to your computer and use it in GitHub Desktop.
if (source.HiResSource != null)
{
this.ProgressIndicator.IsActive = true;
this.LayoutRoot.Children.Add(this.ProgressIndicator);
var hiResSource = new BitmapImage();
hiResSource.ImageOpened += this.ImageOpened;
hiResSource.ImageFailed += this.ImageFailed;
hiResSource.UriSource = new Uri(source.HiResSource);
this.HiResImage = new Image { Source = hiResSource };
this.LayoutRoot.Children.Add(this.HiResImage);
this.HiResImage.Visibility = Visibility.Collapsed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment