Skip to content
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

Closed
LevBolton opened this issue Sep 16, 2022 · 5 comments
Closed

Image does not get cleared when its Source is set to null #10165

LevBolton opened this issue Sep 16, 2022 · 5 comments
Assignees
Milestone

Comments

@LevBolton
Copy link

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

@LevBolton LevBolton added the t/bug Something isn't working label Sep 16, 2022
@Eilon Eilon added the area-image Image loading, sources, caching label Sep 16, 2022
@logikonline
Copy link

logikonline commented Sep 18, 2022

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.

@logikonline
Copy link

Attached Bug Project Change https://github.com/logikonline/MauiApp1.git

@logikonline
Copy link

logikonline commented Sep 24, 2022

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.

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Sep 28, 2022
@jsuarezruiz jsuarezruiz self-assigned this Sep 28, 2022
@ghost
Copy link

ghost commented Sep 28, 2022

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.

@hartez
Copy link
Contributor

hartez commented Feb 28, 2023

Duplicate of #8787

@hartez hartez marked this as a duplicate of #8787 Feb 28, 2023
@hartez hartez closed this as completed Feb 28, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2023
@Eilon Eilon added area-controls-image Image control and removed area-image Image loading, sources, caching labels May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants