Пример #1
0
 /// <summary>Callback for the <see cref="TabDeselected" /> event.</summary>
 /// <param name="e">Arguments associated with the event.</param>
 protected void OnTabDeselected(TitleBarTabEventArgs e)
 {
     if (TabDeselected != null)
     {
         TabDeselected(this, e);
     }
 }
Пример #2
0
 /// <summary>Callback for the <see cref="TabClicked" /> event.</summary>
 /// <param name="e">Arguments associated with the event.</param>
 protected internal void OnTabClicked(TitleBarTabEventArgs e)
 {
     if (TabClicked != null)
     {
         TabClicked(this, e);
     }
 }
Пример #3
0
        /// <summary>
        /// Callback for the <see cref="TabSelected" /> event.  Called when a <see cref="TitleBarTabItem" /> gains focus.  Sets the active window in Aero Peek via a
        /// call to <see cref="TabbedThumbnailManager.SetActiveTab(Control)" />.
        /// </summary>
        /// <param name="e">Arguments associated with the event.</param>
        protected void OnTabSelected(TitleBarTabEventArgs e)
        {
            if (SelectedTabIndex != -1 && _previews.ContainsKey(SelectedTab.Content) && AeroPeekEnabled)
            {
                TaskbarManager.Instance.TabbedThumbnail.SetActiveTab(SelectedTab.Content);
            }

            _previousActiveTab = SelectedTab;

            if (TabSelected != null)
            {
                TabSelected(this, e);
            }
        }