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
- Add a scroll viewer to the designer.
- Add content to the designer (for example, in a text block).
- Select the content, and then right-click and select Cut.
- Select the scroll viewer, and then right-click and select Paste Special.The Apply Item to Scrollviewer dialog box appears.
- In a WPF form, select Child of ScrollViewer. In a Silverlight form, select Content.
- Click OK.
- In the Document Tree, select the object you just pasted (for example, the text block).
- Click the Properties tab, and then select the Advanced check box.
- In the Margin, Height, and Width properties, click the arrow and select Reset to Default.
- In the Text Wrapping property, click Wrap.
- Save the form or user display.
Click Save on the... To save... toolbar locally for WPF forms; to the server for Silverlight forms title bar to the server for WPF forms