Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

MainPage.xaml

By: nemory on Aug 16th, 2012  |  syntax: XML  |  size: 8.02 KB  |  views: 437  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <controls:PivotItem Header="Images" >
  2.                 <Grid>
  3.                     <Grid.RowDefinitions>
  4.                         <RowDefinition Height="Auto"/>
  5.                         <RowDefinition Height="*"/>
  6.                     </Grid.RowDefinitions>
  7.                      
  8.                     <!--TitlePanel contains the name of the application and page title-->
  9.                     <StackPanel x:Name="TitlePanelImages" Margin="0,-18,0,20" Orientation="Horizontal">
  10.                         <TextBlock Height="34" HorizontalAlignment="Left" Name="txtCorrectImages" Text="Correct: " VerticalAlignment="Top" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" Foreground="White" />
  11.                         <TextBlock Height="34" Name="txtTimerImages" Text="Time Left:" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" Foreground="White" />
  12.                     </StackPanel>
  13.  
  14.                     <!--ContentPanel - place additional content here-->
  15.                     <Grid x:Name="ContentPanelImages" Margin="-17,20,-24,9" Grid.RowSpan="2" Background="White" Height="578" Width="497">
  16.                         <Grid.ColumnDefinitions>
  17.                             <ColumnDefinition Width="212*" />
  18.                             <ColumnDefinition Width="270" />
  19.                         </Grid.ColumnDefinitions>
  20.                         <TextBlock Height="171" HorizontalAlignment="Left" Margin="27,18,0,0" Name="txtQuestionImages" Text="Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing " VerticalAlignment="Top" Width="442" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" Grid.ColumnSpan="2" Foreground="#FF6F6F6F" />
  21.                         <Button Content="A" HorizontalAlignment="Left" Margin="10,400,0,116" Name="btnAImages" Width="468" Click="btnAImages_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1" BorderBrush="White" BorderThickness="0" Height="72" />
  22.                         <Button Content="B" Height="72" HorizontalAlignment="Left" Margin="10,454,0,0" Name="btnBImages" VerticalAlignment="Top" Width="468" Click="btnBImages_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1" BorderThickness="0" />
  23.                         <Button Content="C" Height="72" HorizontalAlignment="Left" Margin="10,508,0,0" Name="btnCImages" VerticalAlignment="Top" Width="468" Click="btnCImages_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1" BorderBrush="White" BorderThickness="0" />
  24.                         <Image Height="210" HorizontalAlignment="Left" Margin="46,194,0,0" Name="Images" Stretch="Uniform" VerticalAlignment="Top" Width="393" Grid.ColumnSpan="2" />
  25.                     </Grid>
  26.                 </Grid>
  27.             </controls:PivotItem>
  28.  
  29.             <controls:PivotItem Header="Trailers">
  30.                 <Grid >
  31.                     <Grid.RowDefinitions>
  32.                         <RowDefinition Height="Auto"/>
  33.                         <RowDefinition Height="*"/>
  34.                     </Grid.RowDefinitions>
  35.  
  36.                     <!--TitlePanel contains the name of the application and page title-->
  37.                     <StackPanel x:Name="TitlePanelTrailers" Grid.Row="0" Margin="0,-18,0,20" Orientation="Horizontal">
  38.                         <TextBlock Height="34" HorizontalAlignment="Left" Name="txtCorrectTrailers" Text="Correct: " VerticalAlignment="Top" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" />
  39.                         <TextBlock Height="34" Name="txtTimerTrailers" Text="Time Left:" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" />
  40.                     </StackPanel>
  41.  
  42.                     <!--ContentPanel - place additional content here-->
  43.                     <Grid x:Name="ContentPanel2" Margin="-17,20,-24,9" Grid.RowSpan="2" Background="White" Height="578" Width="497">
  44.                         <Grid.ColumnDefinitions>
  45.                             <ColumnDefinition Width="116*" />
  46.                             <ColumnDefinition Width="340" />
  47.                         </Grid.ColumnDefinitions>
  48.                         <TextBlock Height="130" HorizontalAlignment="Left" Margin="20,12,0,0" Name="txtQuestionTrailers" Text="This is a sample question for my 1st application for windows phone 7 development." VerticalAlignment="Top" Width="459" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" Grid.ColumnSpan="2" Foreground="#FF6F6F6F" />
  49.                         <Button Content="A" HorizontalAlignment="Left" Margin="10,386,0,120" Name="btnATrailers" Width="468" Click="btnATrailers_Click" Grid.ColumnSpan="2" Height="72" Foreground="White" Background="#FF3182C1" />
  50.                         <Button Content="B" Height="72" HorizontalAlignment="Left" Margin="10,440,0,0" Name="btnBTrailers" VerticalAlignment="Top" Width="468" Click="btnBTrailers_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1"/>
  51.                         <Button Content="C" Height="72" HorizontalAlignment="Left" Margin="10,494,0,0" Name="btnCTrailers" VerticalAlignment="Top" Width="468" Click="btnCTrailers_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1"/>
  52.                         <MediaElement Height="224" HorizontalAlignment="Left" Margin="23,148,0,0" Name="media" VerticalAlignment="Top" Width="444" Grid.ColumnSpan="2" Stretch="UniformToFill" MediaEnded="media_MediaEnded" />
  53.                     </Grid>
  54.                 </Grid>
  55.             </controls:PivotItem>
  56.  
  57.             <controls:PivotItem Header="Songs">
  58.                 <Grid >
  59.                     <Grid.RowDefinitions>
  60.                         <RowDefinition Height="Auto"/>
  61.                         <RowDefinition Height="*"/>
  62.                     </Grid.RowDefinitions>
  63.  
  64.                     <!--TitlePanel contains the name of the application and page title-->
  65.                     <StackPanel x:Name="TitlePanelSongs" Grid.Row="0" Margin="0,-18,0,20" Orientation="Horizontal">
  66.                         <TextBlock Height="34" HorizontalAlignment="Left" Name="txtCorrectSongs" Text="Correct: " VerticalAlignment="Top" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" />
  67.                         <TextBlock Height="34" Name="txtTimerSongs" Text="Time Left:" Width="200" TextAlignment="Center" FontSize="20" TextWrapping="Wrap" />
  68.                     </StackPanel>
  69.  
  70.                     <!--ContentPanel - place additional content here-->
  71.                     <Grid x:Name="ContentPanel3" Margin="-17,20,-24,9" Grid.RowSpan="2" Background="White" Height="578" Width="497">
  72.                         <Grid.ColumnDefinitions>
  73.                             <ColumnDefinition Width="116*" />
  74.                             <ColumnDefinition Width="340" />
  75.                         </Grid.ColumnDefinitions>
  76.                         <TextBlock Height="268" HorizontalAlignment="Left" Margin="50,64,0,0" Name="txtQuestionSongs" Text="This is a sample question for my 1st application for windows phone 7 development.This is a sample question for my 1st application for windows phone 7 development." VerticalAlignment="Top" Width="392" TextAlignment="Center" FontSize="25" TextWrapping="Wrap" Grid.ColumnSpan="2" Foreground="#FF6F6F6F" Padding="0" />
  77.                         <Button Content="A" HorizontalAlignment="Left" Margin="10,360,0,117" Name="btnASongs" Width="468" Click="btnASongs_Click" Grid.ColumnSpan="2"  Foreground="White" Background="#FF3182C1" Height="72" />
  78.                         <Button Content="B" Height="72" HorizontalAlignment="Left" Margin="10,428,0,0" Name="btnBSongs" VerticalAlignment="Top" Width="468" Click="btnBSongs_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1" />
  79.                         <Button Content="C" Height="72" HorizontalAlignment="Left" Margin="10,482,0,0" Name="btnCSongs" VerticalAlignment="Top" Width="468" Click="btnCSongs_Click" Grid.ColumnSpan="2" Foreground="White" Background="#FF3182C1" />
  80.                     </Grid>
  81.                 </Grid>
  82.             </controls:PivotItem>