我的一个windows phone program
//花费了一下午的时间我终于完成了这个小程序 对然代码很简单但毕竟我才刚刚接触这些
<phone:PhoneApplicationPage x:Class="Myclock.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="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="True"> <!--LayoutRoot is the root grid where all page content is placed--> <Grid x:Name="LayoutRoot" Background="Transparent"> <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="PageTitle" Text="MyClock" 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 x:Name="Clock" Width="400" Height="400" > <Ellipse StrokeThickness="10" Stretch="Fill"> <Ellipse.Fill> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,2"> <GradientStop Color="#AD3B3B3B"></GradientStop> </LinearGradientBrush> </Ellipse.Fill> <Ellipse.Stroke> <SolidColorBrush Color="BurlyWood"> </SolidColorBrush> </Ellipse.Stroke> </Ellipse> <Ellipse StrokeThickness="3" Width="370" Height="370"> <Ellipse.Stroke> <SolidColorBrush Color="BurlyWood"></SolidColorBrush> </Ellipse.Stroke> </Ellipse> <Grid x:Name="bigGrid" Width="400" Height="400"> <Canvas x:Name="bigCanvas"> <Rectangle x:Name="big00" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"> </TranslateTransform> <RotateTransform Angle="0" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big01" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="30" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big02" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="60" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big03" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="90" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big04" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="120" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big05" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="150" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big06" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="180" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big07" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="210" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big08" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="240" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big09" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="270" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big10" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="300" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="big11" Style="{StaticResource bigPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-5" Y="-175"></TranslateTransform> <RotateTransform Angle="330" /> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> </Canvas> </Grid> <Grid x:Name="minuteGrid" Width="400" Height="400"> <Canvas x:Name="minutesCanvas"> <Rectangle x:Name="minutes01" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="6"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes02" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="12"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes03" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="18"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes04" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="24"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes05" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="30"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes06" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="36"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes07" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="42"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes08" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="48"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes09" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="54"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes010" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="60"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes011" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="66"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes012" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="72"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes013" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="78"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes014" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="84"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes015" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="90"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes16" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="96"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes017" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="102"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes018" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="108"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes019" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="114"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes020" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="120"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes021" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="126"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes022" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="132"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes023" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="138"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes024" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="144"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes025" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="150"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes026" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="156"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes027" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="162"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes028" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="168"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes029" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="174"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes030" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="180"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes031" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="186"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes032" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="192"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes033" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="198"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes034" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="204"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes035" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="210"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes036" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="216"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes037" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="222"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes038" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="228"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes039" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="234"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes040" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="240"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes041" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="246"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes042" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="252"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes043" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="258"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes044" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="264"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes045" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="270"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes046" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="276"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes047" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="282"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes048" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="288"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes049" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="294"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes050" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="300"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes051" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="306"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes052" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="312"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes053" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="318"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes054" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="324"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes055" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="330"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes056" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="336"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes057" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="342"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes058" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="348"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="minutes059" Style="{StaticResource minutesPoint}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-2.5" Y="-175"></TranslateTransform> <RotateTransform Angle="354"></RotateTransform> <TranslateTransform X="200" Y="200"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> </Canvas> </Grid> <Grid x:Name="minisecondGrid" Width="400" Height="400"> <Canvas x:Name="minisecondCanvas"> <Rectangle x:Name="mini01" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="0"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini0201" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="36"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini02" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="72"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini0301" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="108"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini03" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="144"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini0401" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="180"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini04" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="216"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini0501" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="252"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini05" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="288"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> <Rectangle x:Name="mini06" Style="{ StaticResource minisecond}"> <Rectangle.RenderTransform> <TransformGroup> <TranslateTransform X="-1.5" Y="-47"></TranslateTransform> <RotateTransform Angle="324"></RotateTransform> <TranslateTransform X="250" Y="150"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle> </Canvas> </Grid> <Grid x:Name="numGrid" Width="400" Height="400"> <Canvas x:Name="numCanvas"> <TextBlock Height="40" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num12" Text="12" VerticalAlignment="Center" Width="40" Canvas.Left="180" Canvas.Top="50" TextWrapping="Wrap" FontWeight="Bold" FontSize="32" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num1" Text="1" VerticalAlignment="Center" Width="20" Canvas.Left="260" Canvas.Top="70" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num2" Text="2" VerticalAlignment="Center" Width="20" Canvas.Left="310" Canvas.Top="120" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num3" Text="3" VerticalAlignment="Center" Width="20" Canvas.Left="330" Canvas.Top="185" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num4" Text="4" VerticalAlignment="Center" Width="20" Canvas.Left="310" Canvas.Top="250" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num5" Text="5" VerticalAlignment="Center" Width="20" Canvas.Left="260" Canvas.Top="300" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="40" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num6" Text="6" VerticalAlignment="Center" Width="20" Canvas.Left="190" Canvas.Top="300" TextWrapping="Wrap" FontWeight="Bold" FontSize="32" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num7" Text="7" VerticalAlignment="Center" Width="20" Canvas.Left="131" Canvas.Top="300" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num8" Text="8" VerticalAlignment="Center" Width="20" Canvas.Left="80" Canvas.Top="255" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num9" Text="9" VerticalAlignment="Center" Width="20" Canvas.Left="60" Canvas.Top="185" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num10" Text="10" VerticalAlignment="Center" Width="20" Canvas.Left="80" Canvas.Top="120" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> <TextBlock Height="30" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="Num11" Text="11" VerticalAlignment="Center" Width="20" Canvas.Left="128" Canvas.Top="75" TextWrapping="Wrap" FontSize="20" Foreground="White"></TextBlock> </Canvas> </Grid> <Grid x:Name="numminiGrid" Width="400" Height="400"> <Canvas x:Name="numminiCanvas"> <TextBlock Height="10" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="miniNum1" Text="1" VerticalAlignment="Center" Width="10" Canvas.Left="247" Canvas.Top="109" TextWrapping="Wrap" FontSize="12" Foreground="White"></TextBlock> <TextBlock Height="10" HorizontalAlignment="Center" Margin="0,0,0,0" x:Name="miniminiNum50" Text="50" VerticalAlignment="Center" Width="20" Canvas.Left="244" Canvas.Top="175" TextWrapping="Wrap" FontSize="12" Foreground="White"></TextBlock> <TextBlock Height="20" Width="50" Text="孟星星" Margin="0,0,0,0" Canvas.Left="175" Canvas.Top="250" FontSize="14" HorizontalAlignment="Left"></TextBlock> </Canvas> </Grid> <Grid x:Name="handGrid" Width="400" Height="400" Loaded="handGrid_Loaded"> <Canvas x:Name="handCanvas" Loaded="handCanvas_Loaded"> <Canvas.Resources> <Storyboard x:Name="handstoryboard"> <DoubleAnimation From="-6" To="354" Duration="00:01:00" RepeatBehavior="Forever" Storyboard.TargetProperty="(Polygon.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="secondhand" > </DoubleAnimation> </Storyboard> </Canvas.Resources> <Polygon x:Name="secondhand" Canvas.Left="200" Canvas.Top="200"> <Polygon.Points> <Point>0,0</Point> <Point X="0" Y="2" /> <Point X="130"/> </Polygon.Points> <Polygon.Fill> <SolidColorBrush Color="White"></SolidColorBrush> </Polygon.Fill> <Polygon.RenderTransform> <RotateTransform x:Name="handSecond" Angle="6"></RotateTransform> </Polygon.RenderTransform> </Polygon> </Canvas> </Grid> <Grid Width="400" Height="400" > <Canvas x:Name="handMinutesCanvas" Loaded="handMinutesCanvas_Loaded"> <Canvas.Resources> <Storyboard x:Name="handMinutestoryboard"> <DoubleAnimation From="0" To="360" Duration="01:00:00" RepeatBehavior="Forever" Storyboard.TargetProperty="(Polygon.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="Minuteshand" > </DoubleAnimation> </Storyboard> </Canvas.Resources> <Polygon x:Name="Minuteshand" Canvas.Left="200" Canvas.Top="200"> <Polygon.Points> <Point>0,0</Point> <Point X="0" Y="3" /> <Point X="90"/> </Polygon.Points> <Polygon.Fill> <SolidColorBrush Color="White"></SolidColorBrush> </Polygon.Fill> <Polygon.RenderTransform> <RotateTransform x:Name="handMinutes"></RotateTransform> </Polygon.RenderTransform> </Polygon> </Canvas> </Grid> <Grid Width="400" Height="400" > <Canvas x:Name="handhoursCanvas" Loaded="handhoursCanvas_Loaded"> <Canvas.Resources> <Storyboard x:Name="handhourstoryboard"> <DoubleAnimation From="0" To="360" Duration="12:00:00" RepeatBehavior="Forever" Storyboard.TargetProperty="(Polygon.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="hourshand" > </DoubleAnimation> </Storyboard> </Canvas.Resources> <Polygon x:Name="hourshand" Canvas.Left="200" Canvas.Top="200"> <Polygon.Points> <Point>0,0</Point> <Point X="0" Y="4" /> <Point X="50"/> </Polygon.Points> <Polygon.Fill> <SolidColorBrush Color="White"></SolidColorBrush> </Polygon.Fill> <Polygon.RenderTransform> <RotateTransform x:Name="handhours"></RotateTransform> </Polygon.RenderTransform> </Polygon> </Canvas> </Grid> <Grid Width="400" Height="400" > <Canvas x:Name="handsecondsminiCanvas" Loaded="handsecondsminiCanvas_Loaded"> <Canvas.Resources> <Storyboard x:Name="handsecondsminitoryboard"> <DoubleAnimation From="6" To="354" Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetProperty="(Polygon.RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="secondsminihand" > </DoubleAnimation> </Storyboard> </Canvas.Resources> <Polygon x:Name="secondsminihand" Canvas.Left="250" Canvas.Top="150"> <Polygon.Points> <Point>0,0</Point> <Point X="0" Y="2" /> <Point X="50"/> </Polygon.Points> <Polygon.Fill> <SolidColorBrush Color="White"></SolidColorBrush> </Polygon.Fill> <Polygon.RenderTransform> <RotateTransform x:Name="handsecondsmini"></RotateTransform> </Polygon.RenderTransform> </Polygon> </Canvas> </Grid> <Grid> <Canvas> <Ellipse Width="10" Height="10" Canvas.Left="195" Canvas.Top="195"> <Ellipse.Fill> <SolidColorBrush Color="White"> </SolidColorBrush> </Ellipse.Fill> </Ellipse> </Canvas> </Grid> <Grid> <Canvas> <Ellipse Width="5" Height="5" Canvas.Left="248" Canvas.Top="148"> <Ellipse.Fill> <SolidColorBrush Color="White"> </SolidColorBrush> </Ellipse.Fill> </Ellipse> </Canvas> </Grid> </Grid> </Grid> </Grid> <!--Sample code showing usage of ApplicationBar--> <!--<phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/> <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem Text="MenuItem 1"/> <shell:ApplicationBarMenuItem Text="MenuItem 2"/> </shell:ApplicationBar.MenuItems> </shell:ApplicationBar> </phone:PhoneApplicationPage.ApplicationBar>--> </phone:PhoneApplicationPage>