Splash Screen not showing up for windows build on .net maui

anandarus allen 20 Reputation points
2025-04-19T20:11:17.8933333+00:00

Hello all,

So I created a simple custom splash screen, it works for android but not on a windows desktop. Here is the code

public partial class SplashScreen : ContentPage

{

    private ContinousAudio continousAudio;

    public SplashScreen()

	{

		InitializeComponent();

        continousAudio = new ContinousAudio(AudioManager.Current);

        var image = new Image()

        {

            Source = "splash_screen.png",

            HorizontalOptions = LayoutOptions.Center,

            VerticalOptions = LayoutOptions.Center,

            WidthRequest = 512,

            HeightRequest = 512,

            Opacity = 0,

            Scale = 0.7,

          

        };

        Content = new Grid

        {

            Children = {image}          
       };            
 	}

    protected override void OnAppearing()

    {

        base.OnAppearing();

       continousAudio.PlayMusic("Audio/MainTrack.mp3");

    }

}

Any help is greatly appreciated.

Developer technologies | .NET | .NET MAUI
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.