14 Mar 2024 by Member 11634771
I'm so late, but how about my suggestion? var bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.UriSource = new Uri("pen.png", UriKind.RelativeOrAbsolute); bitmapImage.CacheOption = BitmapCacheOption.OnLoad; ...