private void HeroMouseEnter(object sender, MouseEventArgs e) { ((Image)sender).Source = GetGlowingImage(((Image)sender).Name); } pub
Something like:
BitmapImage myBitmapImage = new BitmapImage(new Uri("../../../../Images/folder.png", UriKind.Relative)); myBitmapImage.CacheOption = BitmapCacheOption.OnLoad; Image.Source = myBitmapImage;