private IntPtr WndProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == WM_NCLBUTTONDOWN) { TabMouseDown?.Invoke(this, null); } return(IntPtr.Zero); }
protected void _tabHeaderControl_SelectionChanged(object sender, System.EventArgs e) { if ((_selectedUserControl != null) && (Children.Contains(_selectedUserControl))) { Children.Remove(_selectedUserControl); } _selectedUserControl = null; if ((TabHeaderControl.SelectedIndex > -1) && (TabHeaderControl.SelectedIndex < _items.Count)) { _selectedUserControl = _items[TabHeaderControl.SelectedIndex].Key; Children.Add(_selectedUserControl); SetSelectedUserControlGridPosition(); } CheckTabCount(); SelectionChanged?.Invoke(sender, e); TabMouseDown?.Invoke(this, null); }
private void IViewContainer_TabMouseDown(object sender, EventArgs e) { TabMouseDown?.Invoke(this, null); }
private void FloatingPane_PreviewMouseDown(object sender, MouseButtonEventArgs e) { TabMouseDown?.Invoke(this, null); }
private void TabHeaderControl_TabMouseDown(object sender, EventArgs e) { TabMouseDown?.Invoke(this, null); }
private void _listBox_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { TabMouseDown?.Invoke(this, null); }