次の方法で共有


IXRUIElement::AddMouseWheelEventHandler (Compact 2013)

3/28/2014

This method attaches a delegate to the MouseWheel event for this UI element. When the UI element raises the MouseWheel event, this delegate is invoked.

Syntax

virtual HRESULT STDMETHODCALLTYPE AddMouseWheelEventHandler(
    __in IXRDelegate<XRMouseWheelEventArgs>* pDelegate
) = 0;

Parameters

Return Value

Returns an HRESULT that indicates whether or not the method succeeded.

Remarks

The UI element raises the MouseWheel event when the user rotates the mouse wheel.

The CreateDelegate function provides an easy way to create this IXRDelegate object. You can attach multiple delegates to the same event.

To remove a delegate from the MouseWheel event, call IXRUIElement::RemoveMouseWheelEventHandler.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h,
XRDelegate.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement