/// <summary>Provides class handling for the <see cref="E:System.Windows.UIElement.MouseLeftButtonDown" /> routed event that occurs when the left mouse button is pressed while the mouse pointer is over this control.</summary> /// <param name="e">The event data.</param> // Token: 0x06005CE3 RID: 23779 RVA: 0x001A2178 File Offset: 0x001A0378 protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); DataGridColumnHeadersPresenter parentPresenter = this.ParentPresenter; if (parentPresenter != null) { if (base.ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed) { base.CaptureMouse(); } parentPresenter.OnHeaderMouseLeftButtonDown(e); e.Handled = true; } }
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); DataGridColumnHeadersPresenter parentPresenter = ParentPresenter; if (parentPresenter != null) { // If clickmode is hover then during the mouse move the hover events will be sent // all the headers in the path. To avoid that we are using a capture if (ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed) { CaptureMouse(); } parentPresenter.OnHeaderMouseLeftButtonDown(e); e.Handled = true; } }