internal void Over(ContentWindow window) { if (object.ReferenceEquals(window, currentWindow)) { return; } if (mainTabberIsEmpty) { if (shadowItem != null) { ZOrders.OrderFound(); int dropItemIndex = Items.IndexOf(shadowItem); Items.Remove(shadowItem); TabberItem replacedItem = window.ReplaceItem(); InsertTab(dropItemIndex, replacedItem); currentWindow.Activate(); } } else { if (shadowItem != null) { ZOrders.OrderFound(); int dropItemIndex = Items.IndexOf(shadowItem); Items.Remove(shadowItem); TabberItem replacedItem = window.ReplaceItem(); InsertTab(dropItemIndex, replacedItem); currentWindow.Activate(); } } }
private void FocusOrderWindow(ContentWindow window) { ZOrders.OrderFound(); if (!ZOrders.IsBackOfFront(window.GetTabberControl(), this)) { ZOrders.ActiveReorder(window.GetTabberControl(), this); currentWindow.Topmost = true; currentWindow.Topmost = false; window.Topmost = true; window.Topmost = false; } }