Class ScrollBarView
ScrollBarViews are views that display a 1-character scrollbar, either horizontal or vertical
public class ScrollBarView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
- Inheritance
-
ScrollBarView
- Implements
- Inherited Members
Remarks
The scrollbar is drawn to be a representation of the Size, assuming that the scroll position is set at Position.
If the region to display the scrollbar is larger than three characters, arrow indicators are drawn.
Constructors
- ScrollBarView()
Initializes a new instance of the ScrollBarView class using Computed layout.
- ScrollBarView(int, int, bool)
Initializes a new instance of the ScrollBarView class using Computed layout.
- ScrollBarView(Rect)
Initializes a new instance of the ScrollBarView class using Absolute layout.
- ScrollBarView(Rect, int, int, bool)
Initializes a new instance of the ScrollBarView class using Absolute layout.
- ScrollBarView(View, bool, bool)
Initializes a new instance of the ScrollBarView class using Computed layout.
Properties
- AutoHideScrollBars
If true the vertical/horizontal scroll bars won't be showed if it's not needed.
- IsVertical
If set to
true
this is a vertical scrollbar, otherwise, the scrollbar is horizontal.
- KeepContentAlwaysInViewport
Get or sets if the view-port is kept always visible in the area of this ScrollBarView
- OtherScrollBarView
Represent a vertical or horizontal ScrollBarView other than this.
- ShowScrollIndicator
Gets or sets the visibility for the vertical or horizontal scroll indicator.
- Size
The size of content the scrollbar represents.
Methods
- MouseEvent(MouseEvent)
Method invoked when a mouse event is generated
- OnChangedPosition()
Virtual method to invoke the ChangedPosition action event.
- OnEnter(View)
Method invoked when a view gets focus.
- Redraw(Rect)
Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
- Refresh()
Only used for a hosted view that will update and redraw the scrollbars.
Events
- ChangedPosition
This event is raised when the position on the scrollbar has changed.