shixian.shi
2023-12-28 f1d86e9dd54b08f3ef41b3d327eb2c5b8ea59b50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace MauiApp1;
 
public partial class App : Application
{
    public App()
    {
        InitializeComponent();
        MainPage = new MySplashPage();
        _ = EndSplash();
    }
    async Task EndSplash()
    {
        await Task.Delay(1000);
        MainThread.BeginInvokeOnMainThread(() =>
        {
            MainPage = new AppShell();
        });
    }
}