您可以使用
WindowInteropHelper适当地对WPF窗口进行父代:
var helper = new WindowInteropHelper(theWpfWindow); helper.Owner = win32Window.Handle; theWpfWindow.Show(); // This is now parented appropriately