In this article I am going to explain how we can use ScrollViewer in WPF. In the below example I am using a Image inside a ScrollViewer control.
This is my XAML code..
<Window x:Class="ScrollBarInWPF.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="500" Width="500">
<Grid>
<Label Name="lblRed"></Label>
<ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible">
<Image Source="007.jpg" Width="1100" Height="1100"></Image>
</ScrollViewer>
</Grid>
</Window>
When I run my application..

Figure 1.

Figure 2.