WPF SplashScreen 实现
我尝试在 WPF 中实现 Splash Screnn。我在MSDN中找到了一些很好的例子,但是有一个地方:
private void _applicationInitialize(SplashScreen splashWindow)
{
Thread.Sleep(1000);
// Create the main window, but on the UI thread.
Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Invoker)delegate
{
Window1 MainWindow = new Window1();
Helper.setWin(MainWindow);
MainWindow.Show();
});
}
问题是Helper,那里有什么类以及它必须如何实现。有人可以粘贴一个例子吗?
I try to implement Splash Screnn in WPF. I have found some nice ehample in MSDN, but there is one place:
private void _applicationInitialize(SplashScreen splashWindow)
{
Thread.Sleep(1000);
// Create the main window, but on the UI thread.
Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Invoker)delegate
{
Window1 MainWindow = new Window1();
Helper.setWin(MainWindow);
MainWindow.Show();
});
}
The problem is Helper, whats the class is there and how it must be implemented. Someone could paste an example or smth?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
还有一种更简单的方法:
http://msdn.microsoft.com/en-我们/library/cc656886.aspx
There is an even easier way:
http://msdn.microsoft.com/en-us/library/cc656886.aspx
您可以使用这样的代码在启动时显示图像:
在后面的代码中:
You can use code like this do display an image on startup:
in the code behind: