Specifies in which directions the ScrollView scrolls. The default is Vertical.

This also affects how layout is done of the content, which the scroll direction considered the "open" axis. It's important to have content that matches the direction. For example a StackPanel must be marked as Horizontal for horizontal scrolling.

<ScrollView AllowedScrollDirections="Horizontal">
    <StackPanel Orientation="Horizontal">
        ...
    </StackPanel>
</ScrollView>

Only Horizontal, Vertical, and Both are supported.

Location

Namespace
Fuse.Controls
Package
Fuse.Controls.ScrollView 2.9.1

Returns

ScrollDirections

Possible Values

Left

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Right

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Up

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Down

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Horizontal

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Vertical

Specifies which scroll directions are allowed, or considered, in a control or gesture.

Both

Specifies which scroll directions are allowed, or considered, in a control or gesture.

All

Specifies which scroll directions are allowed, or considered, in a control or gesture.