<phone:PhoneApplicationPage.Resources>
<Storyboard x:Name="Storyboard1">
<DoubleAnimationUsingKeyFrames AutoReverse="True" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.LocalOffsetY)" Storyboard.TargetName="rectangle">
<EasingDoubleKeyFrame KeyTime="" Value="">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseIn"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut"/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="stdShow">
<DoubleAnimationUsingKeyFrames
Storyboard.TargetName="trm"
Storyboard.TargetProperty="Y"
Duration="">
<EasingDoubleKeyFrame
KeyTime="0:0:0" Value=""/>
<EasingDoubleKeyFrame
KeyTime="0:0:1" Value="">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase Power=""/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="stdHide">
<DoubleAnimationUsingKeyFrames
Duration="0:0:1"
Storyboard.TargetName="trm"
Storyboard.TargetProperty="Y">
<EasingDoubleKeyFrame KeyTime="0:0:0"
Value=""/>
<EasingDoubleKeyFrame KeyTime="0:0:1"
Value="">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase Power=""/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="tbShow">
<DoubleAnimationUsingKeyFrames Duration="0:0:1" Storyboard.TargetName="Rota" Storyboard.TargetProperty="X">
<EasingDoubleKeyFrame KeyTime="0:0:0" Value="-300"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase Power=""/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="tbHide">
<DoubleAnimationUsingKeyFrames Duration="0:0:1" Storyboard.TargetName="Rota" Storyboard.TargetProperty="X">
<EasingDoubleKeyFrame KeyTime="0:0:0" Value=""/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-150">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase Power=""/>
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</phone:PhoneApplicationPage.Resources>
    <Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions> <Grid x:Name="rectangle" Background="Green" Margin="0,-50,0,607" Height="" >
<Grid.Projection>
<PlaneProjection/>
</Grid.Projection>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center">
若要本地化显示的字符串
</TextBlock>
</Grid> <!--TitlePanel 包含应用程序的名称和页标题-->
<StackPanel x:Name="TitlePanel" Grid.Row="" Margin="12,17,0,471">
<TextBlock Text="我的应用程序" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
<TextBlock Text="页面名称" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel> <!--ContentPanel - 在此处放置其他内容-->
<Grid x:Name="ContentPanel" Margin="0,156,-10,10" Grid.RowSpan="">
<Button Width="" Click="Button_Click_1" Margin="0,9,330,530"/>
<Button Width="" Click="Button_Click_2" Margin="0,94,330,445"/>
<Button Width="" Click="Button_Click_3" Margin="0,177,330,362" /> <TextBox x:Name="tb" Visibility="Collapsed" Width="" Height="" HorizontalAlignment="Left">
<TextBox.RenderTransform >
<TranslateTransform x:Name="Rota"/>
</TextBox.RenderTransform>
</TextBox>
<Button Background="Green" Width="" Click="Button_Click_4" Margin="0,269,330,270" /> <StackPanel x:Name="sp" Background="LightBlue"
Height=""
VerticalAlignment="Bottom" Margin="0,0,0,-12">
<TextBlock Foreground="Red"
Margin="20,20,20,20"
FontSize=""
Text="你好,点击下面的按钮吧。"/>
<StackPanel.RenderTransform>
<TranslateTransform x:Name="trm"
Y=""/>
</StackPanel.RenderTransform>
</StackPanel>
</Grid> </Grid>
       private void Button_Click_1(object sender, RoutedEventArgs e)
{
if (Storyboard1.GetCurrentState() != ClockState.Stopped)
Storyboard1.Stop();
Storyboard1.Begin(); } private void Button_Click_2(object sender, RoutedEventArgs e)
{
if (stdHide.GetCurrentState() != ClockState.Stopped)
{
stdHide.Stop();
}
stdShow.Begin();
} private void Button_Click_3(object sender, RoutedEventArgs e)
{
if (stdShow.GetCurrentState() != ClockState.Stopped)
{
stdShow.Stop();
}
stdHide.Begin();
}
bool tbbool;
private void Button_Click_4(object sender, RoutedEventArgs e)
{
if (tbbool)
{
tbbool = false;
if (tbShow.GetCurrentState() != ClockState.Stopped)
{
tbShow.Stop();
}
tbHide.Begin();
tbHide.Completed += tbHide_Completed;
}
else
{
tbbool = true;
if (tbHide.GetCurrentState() != ClockState.Stopped)
{
tbHide.Stop();
}
tbShow.Begin();
tb.Visibility = Visibility.Visible;
} } void tbHide_Completed(object sender, EventArgs e)
{
tb.Visibility = Visibility.Collapsed;
}

wp8 -- gameover的更多相关文章

  1. 【WP8.1】WebView笔记

    之前在WP8的时候做过WebBrowser相关的笔记,在WP8.1的WebView和WebBrowser有些不一样,在这里做一些笔记 下面分为几个部分 1.禁止缩放 2.JS通知后台C#代码(noti ...

  2. 【WP8.1】类似“IT之家” 自定义消息 的实现

    曾经在WP7.WP8下的消息 使用的都是Coding4Fun.Phone.Toolkit里面的ToastPrompt类来实现的. 现在我们来自己做个类似IT之家的这种效果:从右边弹出,经过几秒后会自动 ...

  3. 【Cocos2d-x for WP8 学习整理】(5)文字显示全整理

    学习 Cocos2d-x 有一阵了,现在要做个小东西,第一步就遇到了文字展示的问题,于是想把可能遇到的问题统统整理一下.这一部分也不局限于wp8,全平台应该都是一个解决方案. 先在脑袋里大致想了一下, ...

  4. 如何发布付费WP8应用

    如何发布付费应用,听起来蛮简单的,事实上也确实如此,但是发布付费WP8应用前的资料填写却让我郁闷不已. 我打开仪表板,点击进入账户--账户摘要,填写税务资料和付款账户,发现付款账户保存成功了,税务资料 ...

  5. WP8如何添加Newtonsoft.Json包

    WP8开发的时候如何使用Newtonsoft.Json包呢?我在网上包括官网下的DLL文件,添加引用时都给出了这样的提示: 而后在网上找到的解决办法是:使用NuGet程序包来添加. 首先点击工具--& ...

  6. 【WP8】WebBrowser相关

    2014年09月02日更新 今天用了一下WebBrowser,在使用过程中也遇到了一些问题,在这里做一下记录 虽然WebBrowser比较重,会比较影响性能(除非一定要用到它,否则尽量少用),但有时候 ...

  7. Vs2013 html5开发WP8.1 APP之jquery

    仿安卓原生界面,先使用JQM,最新的JQM使用了JQ1.8.5 然后在WP8以上就会遇到动态创建控件的安全性问题 换成JQ2.X即可,但在WP8.1中一定不要删除了 <script src=&q ...

  8. WP8下实现刮刮乐(橡皮擦)功能

    说到刮刮乐这个功能,我们最先想到的是上下两张(长方形)重叠,之后对上面这张图片进行操作. 我的想法是:通过手势,让手指划过的地方变成透明的,底部就会显示了. 那如何让图片变为透明呢?这就要对图片的像素 ...

  9. WP8.1 RT 生命周期详解‏‏‏‏‏‏‏‏‏‏‏‏‏

                应用状态关系转换图 根据此“应用状态关系转换图”.有以下: 三个状态: NotRunning:未运行    Running:运行中   Suspended:挂起 三个事件: A ...

随机推荐

  1. Linux下不同机器之间的文件拷贝

    通过 scp 命令实现不同机器之间的文件拷贝. (1)本机考到目标机器:scp 本机文件 目的地: 如:scp /home/odp-web.war   root@192.168.6.137:/usr/ ...

  2. lamp环境centos6.4

    http://www.centos.bz/2011/09/centos-compile-lamp-apache-mysql-php/comment-page-1/#comments 编译安装: 首先卸 ...

  3. javascript单体模式

    单体模式的思想在于保证一个特定类仅有一个实例.这意味着当第二次使用同一个类创建的新对象的时候,应该得到与第一个所创建的对象完全相同. javacript中并没有类,因此对单体咬文嚼字的定义严格来说并没 ...

  4. django 1.7 新特性 --- data migration

    官方文档:https://docs.djangoproject.com/en/dev/topics/migrations/ 1.7 之前大家可能会用south用于管理数据库的模型的同步.1.7之后dj ...

  5. 深入学习微框架:Spring Boot - NO

    http://blog.csdn.net/hengyunabc/article/details/50120001 Our primary goals are: Provide a radically ...

  6. .NET Reflector 7.6.1.824 Edition .NET程序反编译神器(附插件安装教程2012-10-13更新) 完全破解+使用教程

    原文来自VAllen cnblogs 一.使用教程1.解压后,双击Reflector.exe,如果有选择默认版本的.Net Framework,根据需要选择即可.你选择的版本不同则出现的默认程序集也不 ...

  7. Bulb Switcher

    There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every ...

  8. Digit Counts

    Count the number of k's between 0 and n. k can be 0 - 9. Example if n = 12, k = 1 in [0, 1, 2, 3, 4, ...

  9. Java中Set集合的使用

    除了List之外,Set集合接口也经常使用,Set接口中存放的元素是无序的并且是不可重复的,因此被称为数据集: Set接口因为是无序的,所以没有提供像List一样的set方法来修改元素,查找,添加.删 ...

  10. Java for LeetCode 027 Remove Element

    Given an array and a value, remove all instances of that value in place and return the new length. T ...