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 won't load in Maui Windows app #1576

Open
4 tasks
blmiles opened this issue Oct 27, 2023 · 0 comments
Open
4 tasks

Image won't load in Maui Windows app #1576

blmiles opened this issue Oct 27, 2023 · 0 comments

Comments

@blmiles
Copy link

blmiles commented Oct 27, 2023

🐛 Bug Report

Implemented to negate caching issues in Maui iOS and Android apps. Works very well.
Trying to run same app on Windows WinUI app, none of the images load into this control.
If I swap out to use the std Maui Image control, images load and display.

using this: https://github.com/Redth/FFImageLoading.Compat for the Maui project.
Cannot raise issue on that stream, so here it is...

Expected behavior

Load images in FFImageLoading control in WinUI app. EXACLTY same codebase as Android and iOS Apps.

Reproduction steps

This works:

                              <Image Aspect="AspectFit" Source="{Binding ImagePath}" >
                                    <Image.HeightRequest>
                                        <OnIdiom x:TypeArguments="x:Double" Phone="200" Tablet="375" Desktop="300"  />
                                    </Image.HeightRequest>
                               </Image>

This does NOT work

                                <ffimageloading:CachedImage CacheType="None" InvalidateLayoutAfterLoaded="True" Source="{Binding ImagePath}" Aspect="AspectFit" BitmapOptimizations="True" LoadingPriority="Highest"  >
                                    <ffimageloading:CachedImage.HeightRequest>
                                        <OnIdiom x:TypeArguments="x:Double" Phone="200" Tablet="375" Desktop="300"  />
                                    </ffimageloading:CachedImage.HeightRequest>                                    
                                </ffimageloading:CachedImage>

Version

FFImageLoadingCompat.Maui version 0.1.1

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🌎 UWP
  • 🖥️ WinUI
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

1 participant