Created
September 27, 2011 20:32
-
-
Save clausjoergensen/1246159 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public ImageSource ImageUri | |
{ | |
get | |
{ | |
BitmapImage image = new BitmapImage(); | |
try | |
{ | |
image.BeginInit(); | |
image.CacheOption = BitmapCacheOption.OnLoad; | |
image.CreateOptions = BitmapCreateOptions.IgnoreImageCache; | |
image.UriSource = new Uri("Images/twitterlivetile.png", UriKind.Relative); | |
image.EndInit(); | |
} | |
catch | |
{ | |
} | |
return image; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment