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.
启动应用程序时,我正在从 MEF 插件启动一个新对话框。有人可以解释为什么这会改变App.Current.MainWindow从插件启动的对话框吗?我怎样才能防止这种情况发生?
App.Current.MainWindow
结果 App.Current.MainWindow 被设置为启动的第一个窗口。我在主窗口之前启动插件对话框。