/// <summary>Callback for the <see cref="TabSelecting" /> event.</summary>
 /// <param name="e">Arguments associated with the event.</param>
 protected void OnTabSelecting(TitleBarTabCancelEventArgs e)
 {
     if (TabSelecting != null)
     {
         TabSelecting(this, e);
     }
 }
        /// <summary>
        /// Callback for the <see cref="TabDeselecting" /> event.  Called when a <see cref="TitleBarTabItem" /> is in the process of losing focus.  Grabs an image of
        /// the tab's content to be used when Aero Peek is activated.
        /// </summary>
        /// <param name="e">Arguments associated with the event.</param>
        protected void OnTabDeselecting(TitleBarTabCancelEventArgs e)
        {
            if (_previousActiveTab != null && AeroPeekEnabled)
            {
                UpdateTabThumbnail(_previousActiveTab);
            }

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