silverlight   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了对silverlight中DoubleAnimation的思考大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

“深蓝色的右手”在他的C#开发WPF/Silverlight动画及游戏系列教程第一课中举了一个让方块动起来的例子,但是好多人反映DoubleAnimation通不过,这是因为作者的开发环境是WPF,这样DoubleAnimation可以带三个参数,但是在silverlight中,DoubleAnimation只有不带参数的构造函数,参http://msdn.microsoft.com/en-us
@H_301_0@
@H_301_0@

“深蓝色的右手”在他的C#开发WPF/Silverlight动画及游戏系列教程第一课中举了一个让方块动起来的例子,但是好多人反映DoubleAnimation通不过,这是因为作者的开发环境是WPF,这样DoubleAnimation可以带三个参数,但是在silverlight中,DoubleAnimation只有不带参数的构造函数,参http://msdn.microsoft.com/en-us/library/system.windows.media.animation.doubleanimation(v=Vs.95).aspx

这时,就要如下实现了,

xaml部分:

 

<UserControl x:Class="SilverlightAnimation2.MainPage"

    xmlns="http://scheR_571_11845@as.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://scheR_571_11845@as.microsoft.com/winfx/2006/xaml"

    xmlns:d="http://scheR_571_11845@as.microsoft.com/expression/blend/2008"

    xmlns:mc="http://scheR_571_11845@as.openxmlformats.org/markup-compatibility/2006"

    mc:Ignorable="d"

    d:DesignHeight="8600" d:DesignWidth="800">

 

    <Canvas x:Name="Carrier" Width="800" Height="600" BACkground="Silver" MouSELEftButtonDown="Carrier_MouSELEftButtonDown">

 

    </Canvas>

</UserControl>

@H_301_0@ cs部分:

大佬总结

以上是大佬教程为你收集整理的对silverlight中DoubleAnimation的思考全部内容,希望文章能够帮你解决对silverlight中DoubleAnimation的思考所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。