
一段SL中自动更新程序的代码,随手记一下。
private voID Application_Startup(object sender,StartupEventArgs e) { this.CheckAndDownloadUpdateAsync(); this.RootVisual = new MainPage(); } public App() { this.Startup += this.Application_Startup; this.Exit += this.Application_Exit; this.UnhandledException += this.Application_UnhandledException; this.CheckAndDownloadUpdateCompleted += new CheckAndDownloadUpdateCompletedEventHandler(App_CheckAndDownloadUpdateCompleted); InitializeComponent(); } voID App_CheckAndDownloadUpdateCompleted(object sender,CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("There are new updates downloaded. Please restart!"); } } 总结 以上是内存溢出为你收集整理的Silverlight自动更新的代码全部内容,希望文章能够帮你解决Silverlight自动更新的代码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)