コード例 #1
0
ファイル: TitleBarTabs.cs プロジェクト: anuprakash/EasyTabs
 /// <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);
     }
 }
コード例 #2
0
ファイル: TitleBarTabs.cs プロジェクト: xuezs/EasyTabs
        /// <summary>Callback for the <see cref="TabSelecting" /> event.</summary>
        /// <param name="e">Arguments associated with the event.</param>
        protected void OnTabSelecting(TitleBarTabCancelEventArgs e)
        {
            ResizeTabContents(e.Tab);

            if (TabSelecting != null)
            {
                TabSelecting(this, e);
            }
        }
コード例 #3
0
ファイル: TitleBarTabs.cs プロジェクト: xuezs/EasyTabs
        /// <summary>
        /// Callback for the <see cref="TabDeselecting" /> event.  Called when a <see cref="TitleBarTab" /> 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);
            }
        }