/// <summary> /// Called before the <see cref="E:System.Windows.UIElement.MouseWheel" /> event occurs to provide handling for the event in a derived class without attaching a delegate. /// </summary> /// <param name="e">A <see cref="T:System.Windows.Input.MouseWheelEventArgs" /> that contains the event data.</param> protected override void OnMouseWheel(MouseWheelEventArgs e) { base.OnMouseWheel(e); if (e.Handled || !this.IsMouseWheelEnabled) { return; } e.Handled = this.ActualController.HandleMouseWheel(this, e.ToMouseWheelEventArgs(this)); }