WPF SplashScreen ,如何使启动画面显示的时间更长 [英] WPF SplashScreen , how to make splashscreen showing longer

查看:31
本文介绍了WPF SplashScreen ,如何使启动画面显示的时间更长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现只有一种方法可以延长初始显示时间.

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

这是将 ApplicationDefinition 更改为 Page 并进行配置的时候了.

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

但是我需要ApplicationDefinition,我在这里有定位器,如果我使用页面,它就会丢失.

But I need ApplicationDefinition, I got locator here and it lost if I use page.

所以我想让 SpashScreen 在显示主窗体之前显示时间和延迟更长,但我也想保存 ApplicationDefinition.

So I want to make SpashScreen display time and delay before showing main form longer but I also want to save ApplicationDefinition.

谢谢.

推荐答案

使用显式方式显示启动画面 并将 false 传递给 Show 方法.

Use the explicit way of showing the splash screen and pass false to the Show method.

那样的话,当您想要关闭启动画面时,您必须显式调用 Close().

That way you have to call Close() explicitly when you want the splash to close.

这篇关于WPF SplashScreen ,如何使启动画面显示的时间更长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆