WPF SplashScreen , how to make splashscreen showing longer

后端 未结 4 1766
梦如初夏
梦如初夏 2021-01-22 09:38

I found only one way to make splash display time longer.

That is changing ApplicationDefinition to Page and configuration it\'s time.

But I need ApplicationDefin

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 10:16

    I opened the App.xaml file, and made these changes to "delay" the showing.

    public partial class App : Application
    {
        App()
        {
            // Pause to show the splash screen for 3 seconds
            System.Threading.Thread.Sleep(3000);
        }
    }
    

提交回复
热议问题