Example #1
0
        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();
                }
            }
        }
Example #2
0
 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;
     }
 }
Example #3
0
        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();
        }
Example #4
0
 private void ContentWindow_Activated(object sender, EventArgs e)
 {
     ZOrders.TopReorder(this);
 }
Example #5
0
 private void TabberControl_Unloaded(object sender, RoutedEventArgs e)
 {
     ZOrders.Remove(this);
 }