ScrollViewer

The ScrollViewer element enables scrolling its entire content with both horizontal and vertical scrollbars. This can be easily understood directly at design time. Type the following XAML code:

image

You notice that, because of the big width and height values, the ScrollViewer provides both scrollbars, as demonstrated in Figure 32.17.

Figure 32.17 Implementing a ScrollViewer.

image

This control is useful when you need to arrange multiple elements in a fixed fashion, but you still want to provide the ability of scrolling them within the window. ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.