Skip to main content

ScrollBarVisibility Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Specifies the visibility of a Avalonia.Controls.Primitives.ScrollBar for scrollable content.

public enum ScrollBarVisibility

Inheritance: Enum -> ScrollBarVisibility

Fields​

NameDescription
AutoThe scrollbar should be visible only if there is more content than fits in the viewport.
DisabledNo scrollbars and no scrolling in this dimension.
HiddenThe scrollbar should never be visible. No space should ever be reserved for the scrollbar.
VisibleThe scrollbar should always be visible. Space should always be reserved for the scrollbar.

Auto Field​

The scrollbar should be visible only if there is more content than fits in the viewport.

public Avalonia.Controls.Primitives.ScrollBarVisibility Auto

Disabled Field​

No scrollbars and no scrolling in this dimension.

public Avalonia.Controls.Primitives.ScrollBarVisibility Disabled

Hidden Field​

The scrollbar should never be visible. No space should ever be reserved for the scrollbar.

public Avalonia.Controls.Primitives.ScrollBarVisibility Hidden

Visible Field​

The scrollbar should always be visible. Space should always be reserved for the scrollbar.

public Avalonia.Controls.Primitives.ScrollBarVisibility Visible