In this example, a ScrollViewer is created with a custom background color and disabled horizontal scrollbar. The content of the ScrollViewer is a TextBlock, which will show the text "Hello World!". The VerticalScrollBarVisibility property is set to auto, which means the vertical scrollbar will only appear if necessary. Package library: The ScrollViewer class belongs to the System.Windows.Controls namespace, which is part of the PresentationFramework.dll assembly.