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

anandarus allen 0 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.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
0 comments No comments
{count} votes

Your answer

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