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