Create Splash Screen in WPF
来源:互联网 发布:月薪15万的程序员 编辑:程序博客网 时间:2024/05/22 13:36
Method1 :
Just add image in project , and change the build action to "SplashScreen"
Method2:
Change the App.xmal build action to "page" ,and add the main entry point like :
Notice : the xxx .png file build action is resource in current assembly .
/// <summary>
/// Application Entry Point.
/// </summary>
[STAThreadAttribute()]
public static void Main()
{
SplashScreen ss = new SplashScreen("xxx.png");
PhotoGallery.App app = new PhotoGallery.App();
ss.Show(true);
app.InitializeComponent();
app.Run();
ss.Close();
}
Caution :
· Does not have XAML support for setting splash screen image
· Expression Blend does not provide UI to set the SplashScreen build action
Just add image in project , and change the build action to "SplashScreen"
Method2:
Change the App.xmal build action to "page" ,and add the main entry point like :
Notice : the xxx .png file build action is resource in current assembly .
/// <summary>
/// Application Entry Point.
/// </summary>
[STAThreadAttribute()]
public static void Main()
{
SplashScreen ss = new SplashScreen("xxx.png");
PhotoGallery.App app = new PhotoGallery.App();
ss.Show(true);
app.InitializeComponent();
app.Run();
ss.Close();
}
Caution :
It is important to understand that the Splash Screen has the following limitations:
· It does not actually improve application cold startup time.
· Cannot display sequence of splash images or animation.
· Does not support for animated GIFs
· Does not support earlier versions of VS (earlier than VS2008 Sp1). You should still be able to use the APIs (e.g. Approach C)
· Does not have XAML support for setting splash screen image
· Expression Blend does not provide UI to set the SplashScreen build action
- Create Splash Screen in WPF
- Splash screen in USBloader
- Alpha Blended Splash Screen in Delphi
- Splash Screen
- splash screen
- Splash screen
- Splash screen
- Showing a Splash Screen whilst initializing a WPF Prism application
- Screen size in WPF applications
- Alpha Blended Splash Screen in Delphi - Part 2
- How to Add Splash Screen in Your iOS App
- QT28 how to display a splash screen in qt
- java splash screen特效
- android的Splash Screen
- vs2008 使用Splash screen
- 启动画面(splash screen)
- Java splash screen
- Continuous Splash Screen
- 单元测试与敏捷开发
- VSS 2005 配置简明手册
- 提高网站的性能之一:关注前端的性能
- 调试U-BOOT----让GDB更好地调试
- Android学习笔记(7)—关于Service和Notification的体验
- Create Splash Screen in WPF
- 解决VSS中Access to file "//.../rights.dat" denied的错误 以及 为VSS设置环境变量
- Android学习笔记(8) — GridView与ImageView
- JAVA基础 (JAVA中的STATIC块)
- Android学习笔记(9)-开始做一个数独游戏[上]
- 《把时间当作朋友》读书笔记
- Android学习笔记(10)-开始做一个数独游戏[中]
- 十进制数转换为非十进制书
- Android学习笔记(11)-开始做一个数独游戏[下]