2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 x:Class="ScrollViewer_Methods.Window1"
5 Title="ScrollViewer Methods Sample"
8 <DockPanel Background="Azure">
9 <TextBlock DockPanel.Dock="Top" FontSize="20" FontWeight="Bold" Margin="10">ScrollViewer Content Scrolling Methods</TextBlock>
10 <TextBlock DockPanel.Dock="Top" Margin="10">Use the buttons to the left to scroll the content of the TextBlock.</TextBlock>
11 <StackPanel DockPanel.Dock="Left" Width="150">
12 <Button Click="svLineUp">Adjust Line Up</Button>
13 <Button Click="svLineDown">Adjust Line Down</Button>
14 <Button Click="svLineRight">Adjust Line Right</Button>
15 <Button Click="svLineLeft">Adjust Line Left</Button>
16 <Button Click="svPageUp">Adjust Page Up</Button>
17 <Button Click="svPageDown">Adjust Page Down</Button>
18 <Button Click="svPageRight">Adjust Page Right</Button>
19 <Button Click="svPageLeft">Adjust Page Left</Button>
22 <Border BorderBrush="Black" Background="White" BorderThickness="2" Height="520" Width="520" VerticalAlignment="Top">
23 <ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Auto" Name="sv1">
24 <TextBlock TextWrapping="Wrap" Width="800" Height="1000" Name="txt1"/>