IXRScrollBar::AddScrollEventHandler (Compact 2013)
3/28/2014
This method attaches a delegate to the Scroll event for this scrollbar. When the Scroll event is raised by this scrollbar, this delegate will be invoked.
Syntax
virtual HRESULT STDMETHODCALLTYPE AddScrollEventHandler (
__in IXRDelegate<XRScrollEventArgs>* pDelegate
) = 0;
Parameters
pDelegate
[in] Pointer to an IXRDelegate<ArgType, [SenderType]> object that you want to attach to the Scroll event, which is raised when the user moves the thumb that belongs to this scrollbar.The CreateDelegate function provides an easy way to create this IXRDelegate object.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
Multiple delegates can be attached to the same event.
To remove this delegate from the Scroll event, call IXRScrollBar::AddScrollEventHandler.
.NET Framework Equivalent
System.Windows.Controls.Primitives.ScrollBar.Scroll
Requirements
Header |
XamlRuntime.h, |
sysgen |
SYSGEN_XAML_RUNTIME |