public void PlaceWindow(DockNotebook notebook) { try { //IdeApp.Workbench.LockActiveWindowChangeEvent (); var allocation = Allocation; Destroy(); if (placementDelegate != null) { var tab = notebook.CurrentTab; notebook.RemoveTab(tab.Index, true); placementDelegate(notebook, tab, allocation, curX, curY); } else { ((SdiWorkspaceWindow)frame.Content).SelectWindow(); } } finally { //IdeApp.Workbench.UnlockActiveWindowChangeEvent (); } }
public void PlaceWindow (DockNotebook notebook) { try { //IdeApp.Workbench.LockActiveWindowChangeEvent (); var allocation = Allocation; Destroy (); if (placementDelegate != null) { var tab = notebook.CurrentTab; notebook.RemoveTab (tab.Index, true); placementDelegate (notebook, tab, allocation, curX, curY); } else { ((SdiWorkspaceWindow)frame.Content).SelectWindow (); } } finally { //IdeApp.Workbench.UnlockActiveWindowChangeEvent (); } }