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
源代码下载
收藏文章
精彩图集
精彩文章
- 暂无记录。
热门标签
nosql数据库
imagemagick
读取文件
Windwos
收录
http-post
实体修改
时间为空
WinExec
页面返回值
当前网址
Android序列化
网络接口
图片裁剪
sort
限制用户登录
TIME
中使用
BigDecimal类
文件标题
有容乃大的
查询小偷
sql
安全升级
2048
优化
重复最多
php输出excel
button
执行shell命令
UpdateDaset
linuxshell
求组合数
python类型转换
传送
mod
winxp
func_num_arg
延时处
吸引
encode64
创建表
生成GUID
并发插入优化
3.6
Mixed
还原数据库
while
基本配置
unpack.vbs
concat
学生选课表
编译c程序
反
PHP等比缩放
安装
CSV
deamon
WEB表单
免密码登陆
赞助商链接
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229