Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
激活 WPF 加载项是否有任何优化技巧?我当前的 AddIn 在大约 5-6 秒内激活,但由于它正在 UI 线程上加载,因此 UI 在此期间被阻止。我试图简单地显示一个进度条,但由于 UI 阻塞,它永远不会更新。我实现了一个简单的 hack,它启动一个线程,等待 2 秒,然后通过 Dispatcher 加载 AddIn。此解决方案不错,但两秒钟后进度条冻结。