Skip to content

Allow setting FileSource to null. #63

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

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

OregonGhost
Copy link

This happens automatically in our project when the SVGImage control is discarded (due e.g. to content changes, and we cannot get around it), but since the property is a string, it would be nice to accept null anyway, and at least not crash :)

I set the image to null when the path is null, which seems to be the right way to reset the image.

@jogibear9988 jogibear9988 merged commit 228b4cb into dotnetprojects:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants