HypernovaDesktop Components · docs
Binarymission
WinFormsScrollable Panel › ScrollerPanel

ScrollerPanel

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Containers

A custom Panel control acts like a stock .NET Panel control, and additionally provides many features including being able to customize various user-interface aspects of the scrollbars in the control.

public class ScrollerPanel : Control, IScrollersDockHost, IScrollerPanel

Inherits from / implements: Control, IScrollersDockHost, IScrollerPanel

Members at a glance

ScrollerPanelInitializes a new instance of the ScrollerPanel class.
BorderColorGets or sets the color of the border.
BorderSizeGets or sets the size of the border.
BorderStyleGets or sets the border style.
ContentHostingPanelGets or sets the content hosting panel.
DefaultSizeGets the size this control starts out at before anything sets it.
DockHostGets the dock host.
HorizontalScrollBarGets the horizontal scroll bar.
ScrollBarsOpaqueCornerColorGets or sets the color of the scroll bars opaque corner.
ScrollControlsCompositeSizeMetadataGets the scroll controls composite size metadata.
ScrollSizeGets or sets the size of the scroll.
ShouldNotPerformDockHostHorizontalSizePaintingGets a value indicating whether the control should not perform dock host horizontal size painting.
ShouldNotPerformDockHostVerticalSizePaintingGets a value indicating whether the control should not perform dock host vertical size painting.
ShouldProvideExtendedRenderingArtefactsGets a value indicating whether the control should provide extended rendering artifacts.
VerticalScrollBarGets the vertical scroll bar.
IsInputKeyReports whether this control wants a key that the framework would otherwise treat as navigation.
OnHandleCreatedRaises the HandleCreated event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnKeyDownRaises the KeyDown event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnKeyUpRaises the KeyUp event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnMouseWheelRaises the MouseWheel event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnParentChangedRaises the ParentChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnSizeChangedRaises the SizeChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnTabStopChangedRaises the TabStopChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
OnVisibleChangedRaises the VisibleChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.
WndProcProcesses the Windows messages sent to this control's window.
ScrollerPanelUpdatedOccurs when scroller panel is updated.

Constructors

ScrollerPanel

public ScrollerPanel()

Initializes a new instance of the ScrollerPanel class.

Properties

BorderColor

public Color BorderColor

Gets or sets the color of the border.

Value. The color of the border.

BorderSize

public int BorderSize

Gets or sets the size of the border.

Value. The size of the border.

BorderStyle

public ButtonBorderStyle BorderStyle

Gets or sets the border style.

Value. The border style.

ContentHostingPanel

public Panel ContentHostingPanel

Gets or sets the content hosting panel.

DefaultSize

protected override Size DefaultSize

Gets the size this control starts out at before anything sets it.

DockHost

public Control DockHost

Gets the dock host.

HorizontalScrollBar

public HorizontalScrollBar HorizontalScrollBar

Gets the horizontal scroll bar.

ScrollBarsOpaqueCornerColor

public Color ScrollBarsOpaqueCornerColor

Gets or sets the color of the scroll bars opaque corner.

ScrollControlsCompositeSizeMetadata

public Size ScrollControlsCompositeSizeMetadata

Gets the scroll controls composite size metadata.

ScrollSize

public Size ScrollSize

Gets or sets the size of the scroll.

ShouldNotPerformDockHostHorizontalSizePainting

public bool ShouldNotPerformDockHostHorizontalSizePainting

Gets a value indicating whether the control should not perform dock host horizontal size painting.

ShouldNotPerformDockHostVerticalSizePainting

public bool ShouldNotPerformDockHostVerticalSizePainting

Gets a value indicating whether the control should not perform dock host vertical size painting.

ShouldProvideExtendedRenderingArtefacts

public bool ShouldProvideExtendedRenderingArtefacts

Gets a value indicating whether the control should provide extended rendering artifacts.

VerticalScrollBar

public VerticalScrollBar VerticalScrollBar

Gets the vertical scroll bar.

Methods

IsInputKey

protected override bool IsInputKey(Keys keyData)

Reports whether this control wants a key that the framework would otherwise treat as navigation.

OnHandleCreated

protected override void OnHandleCreated(EventArgs e)

Raises the HandleCreated event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnKeyDown

protected override void OnKeyDown(KeyEventArgs e)

Raises the KeyDown event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnKeyUp

protected override void OnKeyUp(KeyEventArgs e)

Raises the KeyUp event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseWheel

protected override void OnMouseWheel(MouseEventArgs e)

Raises the MouseWheel event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Paint event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnParentChanged

protected override void OnParentChanged(EventArgs e)

Raises the ParentChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnSizeChanged

protected override void OnSizeChanged(EventArgs e)

Raises the SizeChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnTabStopChanged

protected override void OnTabStopChanged(EventArgs e)

Raises the TabStopChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnVisibleChanged

protected override void OnVisibleChanged(EventArgs e)

Raises the VisibleChanged event. ScrollerPanel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

WndProc

protected override void WndProc(ref Message m)

Processes the Windows messages sent to this control's window.

Events

ScrollerPanelUpdated

public event EventHandler<ScrollerPanelEventArgs> ScrollerPanelUpdated

Occurs when scroller panel is updated.