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 not shown on the UWP version of my app. #66

Open
sjorsmiltenburg opened this issue Apr 19, 2021 · 4 comments
Open

Image not shown on the UWP version of my app. #66

sjorsmiltenburg opened this issue Apr 19, 2021 · 4 comments

Comments

@sjorsmiltenburg
Copy link

sjorsmiltenburg commented Apr 19, 2021

original question was "when is UWP supported, do you have some kind of timeline for this?"

@themronion
Copy link

@sjorsmiltenburg as i am aware, uwp is supported

@bmacombe
Copy link

Using in an XF UWP project, works great.

@sjorsmiltenburg
Copy link
Author

sjorsmiltenburg commented Apr 29, 2021

image
I can see that these images are generated for my uwp project, but my image is not shown.

I see an error in the log when the view is loaded:
This error is not visible when the offending image is not in the xaml.
image

The image appears on the android version of my app.
I have tried both the 0.1 and the 0.2 version of the library.

I've tried rebooting / deleting bin & obj dirs / rebuilding etc. Still can't get the image to show on the UWP version of my app.

What did work however was starting a clean XF project and adding the image there.

I've tried to spot and eliminate (version) differences but no luck so far.

@sjorsmiltenburg sjorsmiltenburg changed the title When can we expect UWP support? Image not shown on the UWP version of my app. Apr 29, 2021
@sjorsmiltenburg
Copy link
Author

I found out why it didn't render the image.
The cause of the problem is that I was using the following setting to not have images in my root folder in my UWP project:
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/windows/default-image-directory

I guess the resizetizer code does not take into account the value of this setting.

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

No branches or pull requests

3 participants