Skip to content

UIElementMarkupExtensions.OnMouseWheel<T> method

Subscribes handler to MouseWheel. Occurs when the mouse wheel is scrolled over the element.

public static T OnMouseWheel<T>(this T target, Action<MouseWheelEventArgs> handler)
where T : UIElement
parameter description
T Receiver type.
target Target UIElement.
handler Handler subscribed to MouseWheel.

The same element for chaining.

Sets: UIElement.MouseWheel