Silverlight behavior 实现3D来回跳动
来源:互联网 发布:仙人下凡无人知 编辑:程序博客网 时间:2024/04/29 01:26
Time for a brief but fun post... some time back Tim Heuer posted the Silverlight 3 bouncing plane gratuitous demo. Click an element, and the nearest corner would bounce backwards and forwards as it comes back to rest.
Tim had the code to setup the storyboards, and handle the mouse interaction in code-behind. I look at it, and immediately see a reusable component (even if it is a gratuitous one), or more specifically a behavior, that encapsulates all the logic, and can be attached declaratively in XAML to one or more elements simply without needing any code-behind logic. So I created one such behavior. I used this behavior in my TwitterBug sample at TechEd recently, and thought it could use a dedicated blog post. :-)
Here is a screenshot, which really doesn’t do much justice to something interactive. So go ahead, and click it to run the sample live. Click around on the images. And if you’re wondering how its done, go ahead and download the code. You’ll see a BouncingPlane class that derives from Behavior......
详细查看......
http://www.nikhilk.net/BouncingPlane-Behavior.aspx
- Silverlight behavior 实现3D来回跳动
- Silverlight behavior 实现水印效果
- Silverlight behavior 实现倒影效果
- Silverlight behavior 实现unload事件
- Silverlight 3中的Behavior技术(一)
- Silverlight 3中的Behavior技术(二)
- Silverlight 3中的Behavior技术(三)
- Silverlight 3中的Behavior技术(四)
- Silverlight实现的3D黑白棋
- Silverlight实现的3D黑白棋
- Silverlight behavior 实现将字符串全部转化为小写的behavior
- Silverlight - Attached Behavior + Command
- Silverlight behavior 鼠标拖动
- Silverlight 行为(Behavior)
- Silverlight 行为(Behavior)
- Silverlight 行为(Behavior)
- Silverlight中的Behavior
- How to attach behavior in code behind (Silverlight 3)
- 平面射影几何
- 加班再晚,也要回家
- Socket的原理
- AIR应用程序中配置文件(*-app.xml)的说明
- JDK 1.6环境变量的设置
- Silverlight behavior 实现3D来回跳动
- jtds"Network error IOException Connection refused: connect"问题解决
- BASH的起源
- 源程序的输入及预处理
- 人气
- 利用C++ Builder进行精确计时
- 一碗混沌
- 初识CSDN
- C# WinForm 文件上传下载 (附源码)