我做了什么
BackgroundWorker bg = new BackgroundWorker();
bg.DoWork += new DoWorkEventHandler(DoWork);
bg.RunWorkerCompleted += newRunWorkerCompletedEventHandler(bg_RunWorkerCompleted);
bg.RunWorkerAsync();
void DoWork(Object sender, DoWorkEventArgs args)
{
Dispatcher.BeginInvoke(delegate { InitializeComponent(); });
}
问题是它稍微好一点,但是在页面动画和页面加载之间存在明显的负载。