Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Documents;
  8. using System.Windows.Input;
  9. using System.Windows.Media;
  10. using System.Windows.Media.Animation;
  11. using System.Windows.Shapes;
  12. using Microsoft.Phone.Controls;
  13.  
  14. namespace Game
  15. {
  16. public partial class MainPage : PhoneApplicationPage
  17. {
  18. // Constructor
  19. public MainPage()
  20. {
  21. InitializeComponent();
  22. }
  23.  
  24. private void LayoutRoot_Loaded(object seander, RoutedEventArgs e)
  25. {
  26.  
  27. Random rmd = new Random();
  28.  
  29. mystory1.Begin();
  30.  
  31.  
  32. }
  33.  
  34.  
  35.  
  36. }
  37. }
  38.  
  39. <phone:PhoneApplicationPage
  40. x:Class="Game.MainPage"
  41. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  42. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  43. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  44. xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  45. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  46. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  47. mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
  48. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  49. FontSize="{StaticResource PhoneFontSizeNormal}"
  50. Foreground="{StaticResource PhoneForegroundBrush}"
  51. SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
  52. shell:SystemTray.IsVisible="True">
  53.  
  54.  
  55. <phone:PhoneApplicationPage.Resources>
  56.  
  57. <Storyboard x:Name="mystory1">
  58.  
  59. <ColorAnimation Storyboard.TargetName="El1"
  60. Storyboard.TargetProperty="Color"
  61. From="White" To="Blue"
  62. Duration="0:0:2"
  63. ></ColorAnimation>
  64. </Storyboard>
  65.  
  66. </phone:PhoneApplicationPage.Resources>
  67.  
  68.  
  69. <!--LayoutRoot is the root grid where all page content is placed-->
  70. <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
  71. <Grid.RowDefinitions>
  72. <RowDefinition Height="Auto"/>
  73. <RowDefinition Height="*"/>
  74. </Grid.RowDefinitions>
  75.  
  76. <!--TitlePanel contains the name of the application and page title-->
  77. <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
  78. <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
  79. <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  80. </StackPanel>
  81.  
  82. <!--ContentPanel - place additional content here-->
  83. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
  84. <Grid.RowDefinitions>
  85. <RowDefinition Height="*"></RowDefinition>
  86. <RowDefinition Height="*"></RowDefinition>
  87. <RowDefinition Height="*"></RowDefinition>
  88. </Grid.RowDefinitions>
  89.  
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition Width="*"></ColumnDefinition>
  92. <ColumnDefinition Width="*"></ColumnDefinition>
  93. <ColumnDefinition Width="*"></ColumnDefinition>
  94. </Grid.ColumnDefinitions>
  95. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse1" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" >
  96.  
  97. <Ellipse.Fill>
  98. <SolidColorBrush x:Name="El1" Color="White">
  99.  
  100.  
  101. </SolidColorBrush>
  102.  
  103.  
  104. </Ellipse.Fill>
  105.  
  106. </Ellipse>
  107.  
  108. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse2" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" >
  109.  
  110. <Ellipse.Fill>
  111. <SolidColorBrush x:Name="El2" Color="White">
  112.  
  113.  
  114. </SolidColorBrush>
  115.  
  116.  
  117. </Ellipse.Fill>
  118.  
  119.  
  120. </Ellipse>
  121.  
  122. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse3" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" >
  123.  
  124. <Ellipse.Fill>
  125. <SolidColorBrush x:Name="El3" Color="White">
  126.  
  127.  
  128. </SolidColorBrush>
  129.  
  130.  
  131. </Ellipse.Fill>
  132.  
  133. </Ellipse>
  134.  
  135. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse4" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Row="1" >
  136.  
  137. <Ellipse.Fill>
  138. <SolidColorBrush x:Name="El4" Color="White">
  139.  
  140.  
  141. </SolidColorBrush>
  142.  
  143.  
  144. </Ellipse.Fill>
  145.  
  146. </Ellipse>
  147.  
  148. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse5" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" Grid.Row="1" >
  149.  
  150. <Ellipse.Fill>
  151. <SolidColorBrush x:Name="El5" Color="White">
  152.  
  153.  
  154. </SolidColorBrush>
  155.  
  156.  
  157. </Ellipse.Fill>
  158.  
  159. </Ellipse>
  160.  
  161. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse6" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" Grid.Row="1" >
  162.  
  163. <Ellipse.Fill>
  164. <SolidColorBrush x:Name="El6" Color="White">
  165.  
  166.  
  167. </SolidColorBrush>
  168.  
  169.  
  170. </Ellipse.Fill>
  171.  
  172. </Ellipse>
  173.  
  174. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse7" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Row="2" >
  175.  
  176.  
  177. <Ellipse.Fill>
  178. <SolidColorBrush x:Name="El7" Color="White">
  179.  
  180.  
  181. </SolidColorBrush>
  182.  
  183.  
  184. </Ellipse.Fill>
  185.  
  186. </Ellipse>
  187.  
  188. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse8" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" Grid.Row="2" >
  189.  
  190. <Ellipse.Fill>
  191. <SolidColorBrush x:Name="El8" Color="White">
  192.  
  193.  
  194. </SolidColorBrush>
  195.  
  196.  
  197. </Ellipse.Fill>
  198.  
  199.  
  200. </Ellipse>
  201.  
  202. <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse9" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" Grid.Row="2" >
  203.  
  204. <Ellipse.Fill>
  205. <SolidColorBrush x:Name="El9" Color="White">
  206.  
  207.  
  208. </SolidColorBrush>
  209.  
  210.  
  211. </Ellipse.Fill>
  212.  
  213. </Ellipse>
  214. </Grid>
  215. </Grid>
  216.  
  217.  
  218.  
  219. </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement