示例#1
0
 private void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (this.TabControlItemSelectionChanged != null)
     {
         this.TabControlItemSelectionChanged(e);
     }
 }
示例#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);
        }
示例#3
0
 private void OnTabControlItemChanged(TabControlItemChangedEventArgs e)
 {
     if (this.TabControlItemSelectionChanged != null)
         this.TabControlItemSelectionChanged(e);
 }
示例#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;
        }