|
Stumbled upon the following code in ReactImage.cpp bitmapImage.UriSource(uri);
// It is possible that the same URI will be set twice if an intermediate update occurs that requires
// asynchronous behavior (e.g., when the ImageSourceType is ::Download or ::InlineData). In this case,
// do not set the opacity to zero as the ImageOpened event will not fire.
auto currentUri = bitmapImage.UriSource();
if (uri && currentUri && uri.AbsoluteUri() != currentUri.AbsoluteUri()) {
// TODO: When we change the source of a BitmapImage, we're getting a flicker of the old image
// being resized to the size of the new image. This is a temporary workaround.
imageBrush.Opacity(0);
}Maybe I am reading this wrong but it looks like the if condition will always fail. The |
Answered by
rozele
Sep 22, 2023
Replies: 1 comment 4 replies
|
The code was added specifically as part of this commit: 0329f9b |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it should be fine to just read the currentUri value before setting uri. I think this was just an oversight / failure to test the opacity 0 functionality.