-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image does not get cleared when its Source is set to null #10165
Comments
Let's improve on this bug and show that setting the image behind doesn't work either. Here I am using the AppTheme in conjunction with SVGs. If you could recommend a workaround or a method of setting it with the AppTheme so I can do it in one line - I would greatly appreciate that as well. |
Attached Bug Project Change https://github.com/logikonline/MauiApp1.git |
I have a workaround @LevBolton - If you use the control.SetAppTheme([ImageButton | Image].SourceProperty,null , null) - it works. I discovered with when working on my dark mode. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Duplicate of #8787 |
Description
An Image element does not update when Source is set to null.
Steps to Reproduce
If an Image element is already displaying any image then setting its Source property to null does nothing.
testimage.Source = null;
Link to public reproduction project repository
https://github.com/LevBolton/MAUIImageIssue
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
iOS 15.4 Android 12.1
Did you find any workaround?
Instead of clearing the Source property it's possible to hide the Image element by setting its IsVisible property to false.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: