2012年1月18日

给WPF程序添加启动界面的简单方法

摘要: 首先在工程中加入一张启动界面要显示的图片(例如:界面.jpg),在工程中选中图片右键--》属性,如下图将生成操作一栏设置成 SplashSrceen即可。如果想要更多的设置,可以在app.xaml.cs中重写OnStartUp函数。代码片段如下: public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { SplashScreen s = new SplashScreen("界面1,jpg"); ... 阅读全文

posted @ 2012-01-18 15:25 xiaxia—博客园 阅读(5997) 评论(2) 推荐(1)

导航