Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- using Microsoft.Phone.Controls;
- namespace Game
- {
- public partial class MainPage : PhoneApplicationPage
- {
- // Constructor
- public MainPage()
- {
- InitializeComponent();
- }
- private void LayoutRoot_Loaded(object seander, RoutedEventArgs e)
- {
- Random rmd = new Random();
- mystory1.Begin();
- }
- }
- }
- <phone:PhoneApplicationPage
- x:Class="Game.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="{StaticResource PhoneForegroundBrush}"
- SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
- shell:SystemTray.IsVisible="True">
- <phone:PhoneApplicationPage.Resources>
- <Storyboard x:Name="mystory1">
- <ColorAnimation Storyboard.TargetName="El1"
- Storyboard.TargetProperty="Color"
- From="White" To="Blue"
- Duration="0:0:2"
- ></ColorAnimation>
- </Storyboard>
- </phone:PhoneApplicationPage.Resources>
- <!--LayoutRoot is the root grid where all page content is placed-->
- <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--TitlePanel contains the name of the application and page title-->
- <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
- <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
- <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
- </StackPanel>
- <!--ContentPanel - place additional content here-->
- <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse1" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El1" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse2" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El2" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse3" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El3" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse4" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Row="1" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El4" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse5" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" Grid.Row="1" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El5" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse6" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" Grid.Row="1" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El6" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse7" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Row="2" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El7" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse8" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="1" Grid.Row="2" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El8" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- <Ellipse Height="107" HorizontalAlignment="Center" Name="ellipse9" Stroke="Black" StrokeThickness="1" VerticalAlignment="Center" Width="120" Grid.Column="2" Grid.Row="2" >
- <Ellipse.Fill>
- <SolidColorBrush x:Name="El9" Color="White">
- </SolidColorBrush>
- </Ellipse.Fill>
- </Ellipse>
- </Grid>
- </Grid>
- </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement