本文介绍了创建启动画面,需要有关加载进度的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我有一个简单的WPF窗口形式的启动屏幕.应该发生的是启动屏幕出现并显示当前正在加载的内容.显示的第一件事是主界面.然后是插件.当每个项目开始加载时,我希望更改初始屏幕的状态,像这样.

主界面加载...
然后是
PluginName加载...
... .
PluginName正在加载...

这些是程序应采取的步骤.

  • 启动屏幕加载.
  • 显示主界面正在加载..."
  • 加载主界面.
  • 一旦加载了加载插件
  • 对于每个插件,显示插件名称正在加载...".
  • 加载插件
  • Ok I have a splash screen in the form of a simple WPF window. What's supposed to happen is the splash screen comes up and displays what is currently loading. The first thing that is displayed is the main interface. This is then followed by plugins. As each item starts to load i want the splash screens status to change, a bit like this.

    Main Interface loading...
    then
    PluginName Loading...
    ....
    PluginName Loading...

    These are the steps the program should take.

    • Splash screen load.
    • Display "Main Interface Loading..."
    • Load Main Interface.
    • Once Loaded load plugins
    • for each plugin, Display "PluginName Loading...."
    • Load the plugin
      • 启动画面加载.
      • 加载主界面.
      • 加载后, 显示主界面正在加载..."
      • 正在加载插件
      • 对于每个插件,加载插件
      • 加载所有插件后,显示"PluginName加载中...(最近加载的插件)
      • Splash screen load.
      • Load Main Interface.
      • Once Loaded, Display "Main Interface Loading..."
      • Now load plugins
      • for each plugin, Load the plugin
      • When all plugins loaded, Display "PluginName Loading... (Last plugin loaded)
      void Splash_ContentRendered( object sender,EventArgs e)
      {
      App .Current.splashScreen_Loaded( );
      }
      void Splash_ContentRendered(object sender, EventArgs e) 
        App.Current.splashScreen_Loaded(this); 
      }   

      推荐答案

      根据您的要求修改此示例.

      Modify this sample as per your requirement.

      http://code.msdn.microsoft.com/Dynamic-Flash-Screen -in-WPF-6b1f1dc4


      这篇关于创建启动画面,需要有关加载进度的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 22:09