Skip to content

Instantly share code, notes, and snippets.


kevingosse/AdaptiveImage.cs Secret

Created Jan 13, 2016
What would you like to do?
if (source.HiResSource != null)
this.ProgressIndicator.IsActive = true;
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.HiResImage.Visibility = Visibility.Collapsed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.