Flowdocument's image memory usage exception #9164
Labels
Needs minimal repro project
needs more information
Not enough information has been provided. Please share more detail as requested
Description
In richtextbox, pasting a lot of images, or embedding custom controls can cause memory spikes. This can be solved if you set the cache mode for images to none. But you can't set it for pasted-in images.
BitmapImage img = new BitmapImage(new Uri());
img.CacheOption = BitmapCacheOption.None;
Reproduction Steps
.
Expected behavior
.
Actual behavior
.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: