Silverlight3编程之实现动画按路径运动
下面使用Silverlight3编程给端机做个一组Logo沿圆形轨迹转动效果. 1.运行效果: Code [http://www.xueit.com] Window x:Class = " SLTest.test " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x =
下面使用Silverlight3编程给端机做个一组Logo沿圆形轨迹转动效果.
1.运行效果:

<Window x:Class="SLTest.test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="test" Height="600" Width="800"> <Window.Resources> <Storyboard x:Key="Storyboard1"> <PointAnimationUsingPath Storyboard.TargetName="MyAnimatedEllipseGeometry" Storyboard.TargetProperty="Center" Duration="0:0:5" RepeatBehavior="Forever"> <PointAnimationUsingPath.PathGeometry> <PathGeometry Figures="M 299.9 300 A 100,100 360 1 1 300.1,300 Z"/> </PointAnimationUsingPath.PathGeometry> </PointAnimationUsingPath> </Storyboard> </Window.Resources> <Window.Triggers> <EventTrigger RoutedEvent="FrameworkElement.Loaded"> <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/> </EventTrigger> </Window.Triggers> <Grid> <Path x:Name="pt" Stroke="Black" Fill="Gray" Data="M 299.9 300 A 100,100 360 1 1 300.1,300 Z" /> <Path Fill="Blue"> <Path.Data> <!-- Describes an ellipse. --> <EllipseGeometry x:Name="MyAnimatedEllipseGeometry" Center="300,300" RadiusX="15" RadiusY="15" /> </Path.Data> </Path> </Grid> </Window>
程序运行环境: VS2008SP1
源代码下载
收藏文章
精彩图集
精彩文章
- 暂无记录。
热门标签
文本框值
2013
反选
控制台程序
去空格
计算执行时间
linux系统学习
获得焦点
返回数值
执行时间
进阶教程
Transact-SQL
性能测试
js数组
modify
FizzBuzzWhiz
语句用法
正常访问
unixbench
模仿登录
plus
打码
最小宽度
清除
文件收缩
报错451
dom操作
拼音首字母
金字塔
ActiveX控件
朋友
多域名
html标签
python学习手册
安装Imaging报错
玩转字符串
自动恢复
pyqt4教程
out.print
ssh使用rsa
Android拍照
细节
STORM
虚析构函数
友元函数重载
iptables
及
单例模式实现
异步任务队列
访问无效
auto_increme
script
新浪微博数据
索引器
赋值操作
启用父路径
中文翻译
Driver
精度误差
syslog
赞助商链接
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229