HypernovaDesktop Components · docs
Binarymission
WinForms › Scroll Bars › IScrollBarNavigationButtonRenderer

IScrollBarNavigationButtonRenderer

interface.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ScrollBars

Draws a scroll bar's arrow buttons. Implement it and assign it to ScrollBarBase.ScrollBarNavigationButtonRenderer to replace the built-in buttons; the bar's behaviour is unchanged.

public interface IScrollBarNavigationButtonRenderer

Members at a glance

Methods
DrawDraws one arrow button, background and arrow, into its bounds.

Methods

Draw

void Draw(Graphics graphicsInstanceToDrawOnto, Rectangle drawingBounds, ArrowDrawingArtefact arrowPosition, ControlVisualState currentControlVisualState)

Draws one arrow button, background and arrow, into its bounds.

Parameters
graphicsInstanceToDrawOnto
The bar's drawing surface.
drawingBounds
The button's bounds in the bar's client coordinates: a square as thick as the bar.
arrowPosition
Which way the button's arrow points.
currentControlVisualState
Whether the button is idle, under the pointer or pressed.