Exemple #1
0
 private void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (this.TabControlItemSelectionChanged != null)
     {
         this.TabControlItemSelectionChanged(e);
     }
 }
Exemple #2
0
        private bool HandleTabDetach(MouseEventArgs e)
        {
            bool outside = this.IsMouseOutsideHeader(e.Location);

            if (outside)
            {
                if (this.TabControlItemDetach != null)
                {
                    var args = new TabControlItemChangedEventArgs(this.tabAtMouseDown);
                    this.TabControlItemDetach(args);
                }

                return(true);
            }

            return(false);
        }
Exemple #3
0
 private void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (this.TabControlItemSelectionChanged != null)
         this.TabControlItemSelectionChanged(e);
 }
Exemple #4
0
        private bool HandleTabDetach(MouseEventArgs e)
        {
            bool outside = this.IsMouseOutsideHeader(e.Location);
            if (outside)
            {
                if (this.TabControlItemDetach != null)
                {
                    var args = new TabControlItemChangedEventArgs(this.tabAtMouseDown);
                    this.TabControlItemDetach(args);
                }

                return true;
            }

            return false;
        }