If you're creating the BitmapImage
on any thread other than the UI thread, that would explain this issue. You can freeze the BitmapImage
to ensure it is accessible from any thread:
var bitmapImage = new BitmapImage(...);
bitmapImage.Freeze();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With