Class ScrollView
Scrollviews are views that present a window into a virtual space where subviews are added. Similar to the iOS UIScrollView.
public class ScrollView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
- Inheritance
-
ScrollView
- Implements
- Inherited Members
Remarks
The subviews that are added to this ScrollView are offset by the ContentOffset property. The view itself is a window into the space represented by the ContentSize.
Use the
Constructors
- ScrollView()
Initializes a new instance of the ScrollView class using Computed positioning.
- ScrollView(Rect)
Initializes a new instance of the ScrollView class using Absolute positioning.
Properties
- AutoHideScrollBars
If true the vertical/horizontal scroll bars won't be showed if it's not needed.
- ContentOffset
Represents the top left corner coordinate that is displayed by the scrollview
- ContentSize
Represents the contents of the data shown inside the scrollview
- KeepContentAlwaysInViewport
Get or sets if the view-port is kept always visible in the area of this ScrollView
- ShowHorizontalScrollIndicator
Gets or sets the visibility for the horizontal scroll indicator.
- ShowVerticalScrollIndicator
Gets or sets the visibility for the vertical scroll indicator.
Methods
- Add(View)
Adds the view to the scrollview.
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- MouseEvent(MouseEvent)
Method invoked when a mouse event is generated
- OnEnter(View)
Method invoked when a view gets focus.
- PositionCursor()
Positions the cursor in the right position based on the currently focused view in the chain.
- ProcessKey(KeyEvent)
If the view is focused, gives the view a chance to process the keystroke.
- Redraw(Rect)
Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
- Remove(View)
Removes the view from the scrollview.
- RemoveAll()
Removes all widgets from this container.
- ScrollDown(int)
Scrolls the view down.
- ScrollLeft(int)
Scrolls the view to the left
- ScrollRight(int)
Scrolls the view to the right.
- ScrollUp(int)
Scrolls the view up.