dotnet / dotnet/wpf

BitmapImage - CheckCache public method

Open
#2,894 0 comments 2 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

In file: /src/PresentationCore/System/Windows/Media/Imaging/BitmapImage.cs

I was finding everywhere but can not find public method which can tell me if BitmapImage is already in cache or not. Or is it created or not.

In my application I have listbox of images (bitmapimages) which first shows placeholder image and on download event real image.
Sometimes I need to remove that collection completely and create similar collection that contains already downloaded bitmapimages.

But on download will never be called if BitmapImage is in cache.
Is there a way to check that BitmapImage is in cache already or created successfully?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.