/// <summary> /// Invoked when an unhandled <see cref="E:System.Windows.UIElement.MouseLeftButtonDown"/> routed event is raised on this element. Implement this method to add class handling for this event. /// </summary> /// <param name="e">The <see cref="T:System.Windows.Input.MouseButtonEventArgs"/> that contains the event data. The event data reports that the left mouse button was pressed.</param> protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); if (this.IsEnabled) { WindowSteeringHelper.HandleMouseLeftButtonDown(e, true, true); } }
/// <inheritdoc /> protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); if (e.Handled) { return; } // Contextual groups shall handle mouse events if (e.Source is RibbonContextualGroupsContainer || e.Source is RibbonContextualTabGroup) { return; } WindowSteeringHelper.HandleMouseLeftButtonDown(e, true, true); }
/// <summary> /// Raises the MouseDoubleClick routed event /// </summary> /// <param name="e">The event data</param> protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnMouseLeftButtonDown(e); WindowSteeringHelper.HandleMouseLeftButtonDown(e, false, true); }