Share via


ScrollBar.Scroll Event

Definition

Occurs one or more times as content scrolls in a ScrollBar when the user moves the Thumb by using the mouse.

public:
 virtual event ScrollEventHandler ^ Scroll;
// Register
event_token Scroll(ScrollEventHandler const& handler) const;

// Revoke with event_token
void Scroll(event_token const* cookie) const;

// Revoke with event_revoker
ScrollBar::Scroll_revoker Scroll(auto_revoke_t, ScrollEventHandler const& handler) const;
public event ScrollEventHandler Scroll;
function onScroll(eventArgs) { /* Your code */ }
scrollBar.addEventListener("scroll", onScroll);
scrollBar.removeEventListener("scroll", onScroll);
- or -
scrollBar.onscroll = onScroll;
Public Custom Event Scroll As ScrollEventHandler 
<ScrollBar Scroll="eventhandler"/>

Event Type

Applies to