雾聪
2024-03-29 9ba0dbd98bf69c830dfcfde8f109a400cb65e4e5
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();
        });
    }
}