iOS Page BackgroundImage does not scale correctly #27438
Labels
area-controls-pages
Page types
area-image
Image loading, sources, caching
p/2
Work that is important, but is currently not scheduled for release
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
I want to use the
BackgroundImageSource
property on aContentPage
to set the background image. On Android, the screen is filled with the background. This is not the case on iOS, instead it will render the image according to its size and than repeats it self. I'm currently using a SVG file as background but this didn't work with a PNG file either. I have seen this issue in .NET 8 as well.EDIT: added a repo and images to illustrate the problem.
iOS:
Android:
Steps to Reproduce
ContentPage
set theBackgroundImageSource
property to a local image resource.Link to public reproduction project repository
iOS Page BackgroundImageSource repo
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15 and up, haven't tested older versions
Did you find any workaround?
I created a custom
ContentPageHandler
to map theBackgroundImageSource
property. It does not remove the background image but instead overlaps it (I believe). I couldn't use anImage
element inside the page, so I used this instead.The text was updated successfully, but these errors were encountered: