使用WPF启动画面执行应用程序加载任务... [英] Perform application loading Tasks using WPF splash screen...

查看:129
本文介绍了使用WPF启动画面执行应用程序加载任务...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi ...

我必须开发一个带有启动屏幕的应用程序...当加载应用程序屏幕时,我必须显示进度条和屏幕上的文本以显示进度和当前任务正在加载.我要执行的一些任务如下...

*阅读用户设置.
*读取xml文件.
从*图像文件夹中读取图像,并在以下情况下使用它应用程序加载...
*一些特定于应用程序的数据.
*一些与通信相关的设置和连接的端口.


在阅读所有内容时,我将创建一些对象我想在我的主要应用程序生命周期中使用它...对于每个任务,我都有一个类和其中的一些方法准备就绪&正在工作(我现在正在主应用程序中使用它...)...
我如何在启动屏幕加载时填充所有这些对象,并在整个主应用程序生命周期中在主应用程序中使用它. .. ???

最好的方法是...?

先谢谢了,
IamHuM

hi...

     I have to develop one application with splash screen... When application screen is getting loaded i have to show progress bar and the text on screen to show the progress and current task being loaded. Some task which i want to do are as follows...

      * Read user settings.
      * Read xml files.
      * Read images from Image folder for and use it when application loads...
      * Some application specific data.
      * Some communication related settings and connected ports.


    While reading all this i'll cretate some objects which i want to use through out my main application life time... For each task i hav one class and some methods in it ready & working(which i am using it in my main application right now...)...
    How i can fill all these objects while splash screen loads and use it in my main application through out my main application life time...???

    What is best way to do this...?

Thanks in advance,
IamHuM

推荐答案

大家好,

大家的任何帮助都会对我有所帮助.

hi All,

     Any help from you all will be helpful for me.

我想到要运行一个线程,在其中我将显示Splash窗口...在该线程中,我将创建一个运行所有任务然后显示主窗口的线程.是执行我的任务的好选择...吗?

我如何才能启动将运行启动屏幕的新线程以及我的主线程将如何继续加载主窗口...我如何可以做到吗??

...请建议...我是WPF的新手...


谢谢,
IamHuM

     I thought of running a thread in which i'll show the Splash window... and in that i will create one run all tasks and then show the main windows. Is it the good option to perform my tasks...?

     How i can start a new thread which will run the Splash screen and how my main thread will continue loading the main windows... how i can do this...?

     Please suggest... i am new in WPF...


Thanks in advance,
IamHuM


这篇关于使用WPF启动画面执行应用程序加载任务...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆