超图FAQ: 首先获取IDockBarManager,然后使用类型WorkspaceControlManager获取对应的浮动窗口,再获取里面的Control即可,具体代码如下:
dockBarManager = SuperMap.Desktop.Application.ActiveApplication.MainForm.DockBarManager;
IDockBar bar = dockBarManager[typeof(SuperMap.Desktop.UI.WorkspaceControlManager)];
WorkspaceControlManager workspaceControl = bar.Control as WorkspaceControlManager;
WorkspaceTree tree = workspaceControl.WorkspaceTree;