最近做了一个基于Silverlight4的3D图片浏览器,基本上是重写了以前FLASH的一个版本。

Silverlight 4实现的360度旋转3D图片浏览器_28733

这里大概说一下思路:

1.结构可大致分为:
  a) 背景图 (自定控件)
  b) 图片360度旋转预览(自定控件)
  c) 图片浏览(使用ChildWindow)

Silverlight 4实现的360度旋转3D图片浏览器_28734

2.图片360度布局:
  1)新建一个层存放所有图片,使用Image的PlanProjection属性
  2) 首先偏移Z轴(屏幕方向一个固定距离),然后绕原来中心点旋转一个角度,这里有8张图,每张递增45度
  3) 新建另外一个层,存放两个按钮。

Silverlight 4实现的360度旋转3D图片浏览器_28735

3.图片360度旋转:
1) 在CS文件中新建一个StoryBorad对象,创8幅图顺时针旋转的360度和逆时针旋转360度的动画;为时16秒(前8秒为顺时针,后8秒为逆时针)
2) 用户在单击向左按钮时,找到当前播放的时间(即图片的序号),向后播放一秒。
3) 用户在单击向右按钮时,找到当前播放的时间(即图片的序号 + 8),向后播放一秒。

在线演示:

下载源码:
附件: 亲,您没有权限下载或查看附件喔:-) 马上登录注册吧!
cheat on your wife website wives who want to cheat cheat on your wife website
want to cheat on my wife tracyawheeler.com women wanting to cheat
my husband almost cheated on me thesailersweb.com why men have affairs
all wife cheat site how to catch a cheater
women who cheat on husbands megaedd.com looking to cheat
1

评分次数

    TOP

    深情顶帖,楼主加油!
    what causes women to cheat boomasontennis.com husband watches wife cheat
    all wife cheat site how to catch a cheater
    TOP

    深情顶帖,楼主加油!
    want to cheat on my wife click women wanting to cheat
    TOP

    深情顶帖,楼主加油!
    want to cheat on my wife click women wanting to cheat
    all wife cheat site how to catch a cheater
    TOP

    深情顶帖,楼主加油!
    want to cheat on my wife click women wanting to cheat
    my girl friend cheated on me marcandela.com men who have affairs
    TOP

    深情顶帖,楼主加油!
    my husband almost cheated on me thesailersweb.com why men have affairs
    women who cheat on husbands go looking to cheat
    why does husbands cheat blog.ivanovtech.com why husband cheat on their wife
    TOP

    深情顶帖,楼主加油!
    women who cheat on husbands go looking to cheat
    TOP

    深情顶帖,楼主加油!
    TOP

    深情顶帖,楼主加油!
    cheat on my husband catching a cheater how do i know if my wife cheated
    married men having affairs developerstalk.com reason women cheat
    my girl friend cheated on me married woman wants cheat men who have affairs
    TOP

    深情顶帖,楼主加油!
    want to cheat on my wife click women wanting to cheat
    women who cheat on husbands go looking to cheat
    TOP