The event handler receives an argument of type ScrollBarAnnotationsCreatingEventArgs containing data related to this event.
The following
ScrollBarAnnotationsCreatingEventArgs properties provide information specific to this event.
Property |
Description |
CustomScrollBarAnnotations |
Gets or sets a set of objects that correspond to predefined scrollbar annotations. |
Handled |
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
OriginalSource |
Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class. |
RoutedEvent |
Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance. |
Source |
Gets or sets a reference to the object that raised the event. |
Use the ScrollBarAnnotationsCreating event to create predefined scrollbar annotations. In the ScrollBarAnnotationsCreating's event handler, pass a set of rows with corresponding annotations to event arguments ScrollBarAnnotationsCreatingEventArgs.CustomScrollBarAnnotations property.