Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

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

Open sjorsmiltenburg opened 3 years ago

sjorsmiltenburg commented 3 years ago

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

themronion commented 3 years ago

@sjorsmiltenburg as i am aware, uwp is supported

bmacombe commented 3 years ago

Using in an XF UWP project, works great.

sjorsmiltenburg commented 3 years ago

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 commented 3 years ago

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.