WPF启动画面 [英] WPF Splash Screen

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

问题描述



我在带有.NET 3.5 SP1的W7 64位上具有VS2010

(我在注册表中检查了SP1,以确保它在那里.)

我在项目中添加了JPG文件,并尝试将其构建操作"设置为启动画面".

在我的情况下,该选项未列出.为什么不呢?

其他如何提供启动画面?

JAJB

Hi,

I have VS2010 on W7 64-Bit with .NET 3.5 SP1

(I checked for SP1 in the Registry to be sure that it''s there. It is.)

I added a JPG file to my project and tried to set its Build Action to "Splash Screen".

In my case that option is not listed. Why not?

How else to provide a Splash Screen?

JAJB

推荐答案

这可能有帮助:
WPF-具有状态更新的初始屏幕 [ ^ ]

问候
Espen Harlinn
This might help:
WPF - Splash screen with status update[^]

Regards
Espen Harlinn


为什么您不只是在Google上搜索"WPF启动画面".我得到了很多结果.
例如,这2个直接来自CodeProject:

使用WPF实现启动画面 [ WPF初始屏幕 [
Why don''t you just google for "WPF splashscreen". I get tons of results.
For example these 2 directly from CodeProject:

Implement Splash Screen with WPF[^]

WPF Splash Screen[^]


>"为什么"Splash Screen"在我的系统中未列为构建操作"选项"

首先,您很可能使用了错误的术语:最有可能想到的是Visual Studio模板",即在解决方案或项目节点的解决方案资源管理器中执行操作添加"时采取的操作的树.您不太可能说构建操作",因为它是构建系统的概念,特定于单独的项目节点(代表文件)-有关详细信息,请参见MSBuild文档.

可能启动画面"没有在任何地方列出",因为其中没有特殊需要.可以用作初始屏幕的组件没有什么特别的.通常,这是WPF WindowSystem.Windows.Forms.Form,具有经过特殊调整的属性和对某些事件的适当处理.

如果您只是更加关注其他答案,就不必再对该主题提出其他问题了.而且我不需要写我的.
>"why "Splash Screen" is not listed as a "Build Action" option in my system"

First of all, you''re most probably using wrong terminology: most likely, what you have in mind is Visual Studio "Template", the actions taken when you perform the operation "Add" in your Solution Explorer at a solution or project node of the tree. Less likely you meant a "Build Action" because is a notion of build system, specific to a separate project node (representing a file) -- see MSBuild documentation for comprehensive information.

Probably, "Splash Screen" is not "listed" anywhere, because there is no special need in it. There is nothing special about a component which can serve as a splash screen. Most typically, this is a WPF Window or System.Windows.Forms.Form with specially adjusted properties and appropriate handling of some events.

If you simply paid more attention to the other Answers, you would not have to ask additional question on the topic; and I would not need to write mine.


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

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