2012-07-11 29 views

回答

3

只需使用標準的WPF/Windows窗體對話框即可。對於Windows窗體,使用帶有IWin32Window實例的Show/ShowDialog重載。對於WPF請參閱IWin32Window in WPF。通過Shell.Instance.GetComponent()。MainWindow獲取IWin32Window的實例。而不是從ExecutePsiTransation,而是從ExecuteBeforeProgressAndTransaction方法。

+0

該死的,你一直在跳動我的問題:) – 2012-07-11 17:59:18

+0

在ExecutePsiTransation中獲取用戶輸入並不是個好主意。 – derigel 2012-07-11 19:59:36

相關問題