ScrollView
Properties
AvoidsKeyboard
Whether the content is inset so the keyboard never covers the focused control.
Type: bool
Content
The single scrollable child.
Type: View?
IndicatorInsets
Insets the scroll indicator from the edges, or null to track the content insets.
Type: Thickness?
IndicatorStyle
The color of the scroll indicator.
Type: IndicatorStyle
IsRefreshing
Whether the refresh spinner is showing.
With a two-way binding, pulling sets it to true and the ViewModel sets it to false when done.
KeyboardDismiss
How dragging the scroll view dismisses the keyboard.
Type: KeyboardDismiss
Orientation
The scroll axis.
Type: Orientation
Paging
Whether scrolling snaps to whole viewport pages.
Type: bool
RefreshCommand
Command invoked when the user pulls to refresh.
Setting it installs the refresh control. The
ICommand.CanExecutecontrols whether the user can pull to refresh.
Type: ICommand?
RefreshCommandParameter
The parameter passed to RefreshCommand.
Type: object?
Scrolled
Invoked as the view scrolls, with the offset in points.
ShowsIndicator
Whether the scroll indicator is shown.
Type: bool
Methods
ArrangeOverride
Content arrangement. Panels override to place their children.
| Parameter | Summary |
|---|---|
Size finalSize | The final size available for the view's content. |
Returns
Size: The arranged content size.
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.
ScrollTo
Scrolls to an offset along the scroll axis, in points.