Dynamic loading of images in WPF

后端 未结 5 1899
执念已碎
执念已碎 2020-12-04 08:28

I have a strange issue with WPF, I was loading images from the disk at runtime and adding them to a StackView container. However, the images were not displayed. After some

5条回答
  •  天涯浪人
    2020-12-04 09:21

    You could try attaching handlers to various events of BitmapImage:

    • DecodeFailed
    • DownloadFailed
    • DownloadCompleted

    They might tell you a little about what's going on, as far as the image is concerned.

提交回复
热议问题