WPF应用程序启动显示图片资源

调用SplashScreen类

为 windows presentation foundation (WPF) 应用程序提供一个启动屏幕。

url:http://msdn.microsoft.com/zh-cn/library/system.windows.splashscreen.aspx
 

实例

public  partial class App:Application
    {
        [STAThread]
        static void Main(string[] args)
        {
            SplashScreen s = new SplashScreen("2.jpg");
            s.Show(true);
            App a = new App();
            
            a.Run();
        }
    }

 

posted @ 2014-04-20 11:29  L-Jie  阅读(463)  评论(0编辑  收藏  举报