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(); } } }