I wanted to use a SplashScreen in my .NET MAUI App which is showing a JPG FullScreen and also just thinking of showing also Version Information on the same page.
When I double click on my Project-File, I can see an ItemGroup in which I set my jpg
<ItemGroup>
...
<MauiSplashScreen Include="Resources\Splash\mySplash.jpg" BaseSize="128,128" Color="#FFFFFF" Aspect="AspectFill" />
...
</ItemGroup>
Okay, I've just set a small BaseSize here, but AspectFill did not work at all and also there is no possibility to set an additional Label do have Version information below.
The Version information for now is not a must, but would be nice. But, a must have for me is that my JPG is shown full screen. Currently, it is shown within a circle.
I tried with my own ContentPage and added it to App.xaml.cs Unfortunately, it wasn't shown as SplashScreen and just could see the typical Blue Screen with the ".NET"-Logo when my App was started in Pixel 5 - API 33 (Android 13.0 - API 33)-Emulator
public App()
{
InitializeComponent();
MainPage = new MySpalshScreen();
}
Is there a way to show my own ContentPage and after about 3 seconds move on to my normal Main-Page?
Added Screenshot to Comment
This is how it is displayed when I start my App:
- First of all, I get the Standard-SplashScreen-Background where we would normally see the .NET-Logo
- Then my own SplashScreen-ContentPage with the Dotnet_Bot.svg is loaded
- First of all it shows the standard blue background where we would normally see the .NET-Logo as Splash-Screen. By double-clicking on my project, I already commented out
<!--<MauiSplashScreen Include="Resources\Splash\dotnet_bot.svg" BaseSize="128,128" Color="#FFFFFF" Aspect="AspectFill" /> -->