Add content to a scroll viewer

The Scroll Viewer control encapsulates horizontal and vertical scroll bar elements and a content container, such as a grid or panel, in order to display other visible controls in a scrollable area.

Before you begin

Procedure

  1. Add a scroll viewer to the designer.
  2. Add content to the designer (for example, in a text block).
  3. Select the content, and then right-click and select Cut.
  4. Select the scroll viewer, and then right-click and select Paste Special.
    The Apply Item to Scrollviewer dialog box appears.
  5. In a WPF form, select Child of ScrollViewer. In a Silverlight form, select Content.
  6. Click OK.
  7. In the Document Tree, select the object you just pasted (for example, the text block).
  8. Click the Properties tab, and then select the Advanced check box.
  9. In the Margin, Height, and Width properties, click the arrow and select Reset to Default.
  10. In the Text Wrapping property, click Wrap.
  11. Save the form or user display.
    Click Save on the...To save...
    toolbarlocally for WPF forms; to the server for Silverlight forms
    title barto the server for WPF forms