.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,068 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.