mrfangzheng

Hope and fear are useless. Be confident, and always be prepared for the worst.
  首页  :: 新随笔  :: 联系 :: 管理

2008年5月3日

摘要: Transform的种类: Scale 尺寸 Rotation 旋转 Translate 位移 注意: 和顺序有关 1.圆周运动(不自转), 用TranslateTransform 2.自转, 用RotationTransform 3.移动到某个位置后自转: 先RotationTransform, 然后TranslateTransform 3.向心旋转, 先TranslateTransform确... 阅读全文

posted @ 2008-05-03 15:24 mrfangzheng 阅读(572) 评论(0) 推荐(0) 编辑

2008年5月2日

摘要: Storyboard storyBoard = new Storyboard();DoubleAnimation ani = new DoubleAnimation(); ani.From = 0;ani.To = 360;ani.Duration = new Duration(TimeSpan.FromMilliseconds(5000));ani.RepeatBehavi... 阅读全文

posted @ 2008-05-02 18:42 mrfangzheng 阅读(7056) 评论(0) 推荐(0) 编辑

摘要: GeometryModel3D model = .; string imgFile = @"C:\a.jpg"; Uri imgUri = new Uri( imgFile, UriKind.RelativeOrAbsolute ); ImageSource imgSrc = new BitmapImage( imgUri ); //load image DiffuseMaterial mtr... 阅读全文

posted @ 2008-05-02 16:46 mrfangzheng 阅读(1270) 评论(0) 推荐(0) 编辑

摘要: ... 阅读全文

posted @ 2008-05-02 15:48 mrfangzheng 阅读(649) 评论(0) 推荐(0) 编辑

摘要: ... 阅读全文

posted @ 2008-05-02 13:15 mrfangzheng 阅读(1138) 评论(0) 推荐(0) 编辑

摘要: 几何数据相关类 Geometry3D 抽象类, 用于定义物体的几何数据, 可用于计算HitTest和BoundingBox MeshGeometry3D Geometry3D的子类, 定义网格的顶点, 三角形顶点, 法线, Texture(纹理)的座标 常用属性: Positions, TriangleIndices, Noramls, TextureCoordinates 模型相关类 ... 阅读全文

posted @ 2008-05-02 13:04 mrfangzheng 阅读(1623) 评论(1) 推荐(0) 编辑

2008年5月1日

摘要: Layout(Canvas, StackPanel, ...) 绘图, 座标, 变形, 图像处理 HitTest Transparent ◆ Animation ◆ 3D SilverLight调用资源(图片, 视频...) SilverLight国际化 SilverLight操作浏览器中的JavaScript, HTML DOM JavaScript操作SilverLight中... 阅读全文

posted @ 2008-05-01 15:41 mrfangzheng 阅读(280) 评论(0) 推荐(0) 编辑

2008年4月30日

摘要: 把每个界面元素看成一个内部状态的表现, 当内部状态改变时就更新界面, 因此会有n个UpdateXxx()函数界面初始化时调用UpdateXxx()内部状态的set方法中调用UpdateXxx()多语言, 把字符串之类的放到资源文件中去 阅读全文

posted @ 2008-04-30 15:29 mrfangzheng 阅读(186) 评论(0) 推荐(0) 编辑

摘要: 容器 Container, 元素 Element 容器, 以某种数据结构存储多个元素, 本质是一个集合. 容器的行为分2种: 与元素类型无关, 比如: 添加, 批量添加, 删除, 批量删除 与元素类型相关, 比如: 对元素的某个属性排序(要求元素具有该属性并且该属性实现ICompatible接口), 求和(可以被相加) 容器的常用事件 元素被加入, 元素被移除 容器通常需要考虑效率... 阅读全文

posted @ 2008-04-30 11:15 mrfangzheng 阅读(221) 评论(0) 推荐(0) 编辑

2008年4月29日

摘要: sp_msForEachTable 对每个表进行操作 create table #rowcount (tablename varchar(128), rowcnt int)exec sp_MSforeachtable 'insert into #rowcount select ''?'', count(*) from ?'select * from #rowcount order ... 阅读全文

posted @ 2008-04-29 15:43 mrfangzheng 阅读(163) 评论(0) 推荐(0) 编辑