语帆
2024-02-28 eb92e79fb94e7b3df8f27c8ce3e607a70dff2a2e
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();
        });
    }
}