xtd 0.2.0
Loading...
Searching...
No Matches

◆ on_scroll()

virtual void xtd::forms::track_bar::on_scroll ( const event_args e)
protectedvirtual

Raises the track_bar::scroll event.

Parameters
eAn event_args that contains the event data.
Remarks
You can use the OnScroll event to update other controls as the position of the scroll box changes.
Raising an event invokes the event handler through a delegate.
The on_scroll method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors
Remarks
When overriding on_scroll(const event_args&) in a derived class, be sure to call the base class' on_scroll(const event_args&) method so that registered delegates receive the event.