BindingContainer
, Bunifu ScrollBars can blend easily with container controls, allowing users to scroll through items just as they do with the standard windows scroll bars.BindTo(ScrollableControl scrollableControl)
: This method allows you to bind any scrollable container control with a Bunifu vertical or horizontal scroll bar.
Example:
bunifuVScrollBar1.BindTo(myPanel)
bunifuHScrollBar1.BindTo(myPanel)
BindTo(DataGridView dataGridView, bool allowSelection)
This method allows you to bind any DataGridView control to a Bunifu vertical or horizontal scroll bar.
Example:
bunifuVScrollBar1.BindTo(myDataGridView)
bunifuHScrollBar1.BindTo(myDataGridView)
BindingContainer
: This property acts as a shorthand option for the above methods, allowing you to bind any supported container control to a Bunifu vertical or horizontal scroll bar.AllowCursorChanges
:AllowScrollingAnimations
:
AllowScrollKeysDetection
to true
. This also supports the PageUp and PageDown keys. Likewise, to use the Home and End keys for scrolling, simply set the property AllowHomeEndKeysDetection
to true
. This lets you to move from one end of the range to another (that is, Maximum
to Minimum
and vice-versa):AllowScrollOptionsMenu
to true
or false
respectively:
AllowShrinkingOnFocusLost
. This means that the scroll bars will shrink to a specified value when not in use and auto-grow when in use. You can set the shrink-size limit using the property ShrinkSizeLimit
which accepts an integer value.BorderRadius
is set to 1
. We will be working on including it also with curved scroll bars, so don't you worry...BorderRadius
, BorderThickness
, BorderColor
, BackColor
and ThumbColor
:
Inset
which means that the thumb will be within the scroll bar, and Proportional
which means that the thumb will be equal in size to the scroll bar:ThumbLength
property. This however is only available via code and therefore not in the Properties window:AllowMouseHoverEffects
and AllowMouseDownEffects
are enabled: