ScrollViewer exposes two major properties—HorizontalScrollBarVisibility and VerticalScrollBarVisibility. Both represent an enumeration named ScrollBarVisibility, having four values:
- Visible: When the property is set to ScrollBarVisibility.Visible, the scroll bar will be visible all the time.
- Hidden: When the property is set to ScrollBarVisibility.Hidden, the scrollbar will not be visible on screen and the user will not be able to scroll to see the complete content.
- Disabled: When it is set to ScrollBarVisibility.Disabled, the scrollbars will be disabled.
- Auto: This is often used to make the scrolling thumbs visible only when they are needed. For this, set the property to ScrollBarVisibility.Auto.