added samples
[windows-sources.git] / sdk / samples / WPFSamples / ScrollViewerMethods / visualbasic / window1.xaml
blobfd284690e0553bff205e3d2b8c4247fbe0597f9d
1 <Window  
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"
6     Loaded="onLoad"
7     >
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>
20 </StackPanel>  
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"/> 
25         </ScrollViewer>
26 </Border>
27 </DockPanel>
28 </Window>