Skip to content

Instantly share code, notes, and snippets.

@clausjoergensen
Created September 27, 2011 20:32
Show Gist options
  • Save clausjoergensen/1246159 to your computer and use it in GitHub Desktop.
Save clausjoergensen/1246159 to your computer and use it in GitHub Desktop.
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