How to add the Splash Screen in .NET MAUI ?

Yanik Blouin 21 Reputation points
2022-02-08T08:03:17.867+00:00

I’ve worked with Xamarin Forms and in Xamarin Forms we use Android Project and IOS Project for Splash Screen. In Android we use Drawable Folder and in IOS we use Story Boarding for adding the Splash Screen. Now I’m not sure how to achieve this in .NET MAUI ? By default a .NET Logo appears in the Splash Screen in .NET MAUI. From where this Splash Screen is coming ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,196 questions
{count} votes

Accepted answer
  1. ASFEND YAR HAMID 156 Reputation points MVP
    2022-02-08T08:05:42.677+00:00

    Well in .NET MAUI it’s really easy to add the splash screen. Just go to the .cs proj file of your project. To open the .cs proj file just double tap your project and this will open a .cs proj file inside the visual studio. Now just search for Splash Screen and there you’ll see the default Splash Screen.

    <!-- Splash Screen --> 
    <MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" /> 
    

    All you need to do is just add any svg image inside your Resources folder which is present inside your .NET MAUI project. Let’s say my Splash Screen image name is splashscreen.svg So in the .cs proj file I’ll replace the Resources\appiconfg.svg to Resources\splashscreen.svg

    Now you new code will be

     <!-- Splash Screen --> 
     <MauiSplashScreen Include="Resources\splashscreen.svg" Color="#512BD4" /> 
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful