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; } }
private void TabberControl_Loaded(object sender, RoutedEventArgs e) { if (!DesignerProperties.GetIsInDesignMode(this)) { currentWindow = Window.GetWindow(this); currentWindow.Activated += ContentWindow_Activated; currentWindow.Closing += CurrentWindow_Closing; } tabPanel = FindItemsPanel(this); ZOrders.AddCheckedFirst(this); firstSort = false; SortPins(); }
private void ContentWindow_Activated(object sender, EventArgs e) { ZOrders.TopReorder(this); }
private void TabberControl_Unloaded(object sender, RoutedEventArgs e) { ZOrders.Remove(this); }