Skip to content

.Net MAUI- Page.BackgroundImageSource not working for iOS #21594

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
I have created a sample project and I want to apply background image on the content page

public MainPage()
{
InitializeComponent();
var backgroundImageSource = ImageSource.FromFile("loginbg.png");
// Set the background image
BackgroundImageSource = backgroundImageSource;
}

attached Sample code :
MauiApp3.zip


Original Comments

Feedback Bot on 2/21/2024, 00:15 AM:

(private comment, text removed)

Santosh Kundkar on 3/8/2024, 00:00 AM:

(private comment, text removed)


Original Solutions

Santosh Kundkar solved on 2/20/2024, 11:29 PM, 0 votes:

I have also tried with setting the property on App.xml
like
<Style TargetType=“ContentPage” ApplyToDerivedTypes=“True”>
<Setter Property=“NavigationPage.HasNavigationBar” Value=“False” />
<Setter Property=“BackgroundImageSource” Value=“loginbg.png” />

</Style>

But again this is not working

Issue is only with iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-pagesPage typespartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions