WPF Image.Source caching too aggressively

后端 未结 1 1100
情深已故
情深已故 2020-12-19 02:56

I have an instance of System.Windows.Controls.Image, and I set the contents programmatically as such:

Uri location = new Uri(uriString);
image.S         


        
1条回答
  •  清歌不尽
    2020-12-19 02:59

    I think you need to set the CreateOptions on the BitmapImage to:

    BitmapCreateOptions.IgnoreImageCache
    

    0 讨论(0)
提交回复
热议问题