【Revit】设置窗体的父窗体为Revit窗体
在窗体的构造函数中加上下面的一句代码即可:
new System.Windows.Interop.WindowInteropHelper(this).Owner = Autodesk.Windows.ComponentManager.ApplicationWindow;
在窗体的构造函数中加上下面的一句代码即可:
new System.Windows.Interop.WindowInteropHelper(this).Owner = Autodesk.Windows.ComponentManager.ApplicationWindow;