WPF應用程序啓動顯示圖片資源

調用SplashScreen類windows

爲 windows presentation foundation (WPF) 應用程序提供一個啓動屏幕。app

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

實例ide

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();
        }
    }
相關文章
相關標籤/搜索