#390 – Scrollbar Visibility in a ScrollViewer

The HorizontalScrollbarVisibility and VerticalScrollbarVisibility properties dictate which scrollbars appear in a ScrollViewer.  The properties can be set to one of the ScrollBarVisibility values:

  • Disabled – scrollbar doesn’t appear and user can’t scroll any of the contained content

  • Hidden – scrollbar doesn’t appear, but the user can still scroll the content, e.g. with arrow keys

  • Visible – scrollbar always visible, but greyed out if there is nothing to scroll

  • Auto – Scrollbar appears only when needed

Advertisement