IOS background image #23425
Unanswered
waldevelop
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to add a background image in a contentpage ?
I tried to wrote it in the xaml
xml version="1.0" encoding="utf-8"
ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Lares.Client.MainPage"
BackgroundImageSource="marmo.png"
x:Name="MyPage"
Other controls
ContentPage
but all the other controls in the page seems to be placed behind the image so they're invisible
This occurs in IOS and Android too
If instead I use another approach adding this code:
Grid
Image
x:Name="backgroundImage"
Source="marmo.png"
Aspect="AspectFill"
HorizontalOptions="Start"/
VerticalStackLayout
...... all other controls
/VerticalStackLayout
/Grid
everything is working fine on Android instead on IOS all the controls added in the page are not clickable
for instance if I add a picker or some buttons inside the VerticalStackLayout, none of them are clickable.
what am I doing wrong ?
I'm using Net Maui 8
Beta Was this translation helpful? Give feedback.
All reactions