Scrolling

For most apps, the ability to scroll through content that is too large to view all at once is critical. The XAML UI Framework makes this easy because all you need to do is wrap an element in a ScrollViewer control, and the element instantly becomes scrollable. ScrollViewer makes use of ScrollBar controls and hooks them up to your content automatically. Internally, it supports independent input—enabling Windows to process input on a background thread—for smooth motion that doesn’t get bogged down by activity on the UI thread.

ScrollViewer has a Content property that can be set to a single item, typically an entire panel. Because Content is ScrollViewer’s content property in the XAML sense, you can place the item requiring scrolling as ...

Get Universal Windows® Apps with XAML and C# Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.