您可以使用
WindowInteropHelper适当地对WPF窗口进行父代:
原文链接:https://www.f2er.com/windows/363935.htmlvar helper = new WindowInteropHelper(theWpfWindow); helper.Owner = win32Window.Handle; theWpfWindow.Show(); // This is now parented appropriately