Enable Horizontal and Vertical Scrollbar
In order to enable horizontal and/or vertical scrollbars you need to set the ScrollViewer's attached properties HorizontalScrollBarVisibility and/or VerticalScrollBarVisibility.
Example 1: Set Attached ScrollViewer Properties
The same operation can be done in code-behind:
Example 1: Set Attached ScrollViewer Properties
The result is illustrated in Figure 1.