-
-
Save kevingosse/8b449615e601f61d567b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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