随笔分类 -  WPF学习笔记

WPF程序设计指南: Binding(数据绑定)[下]
摘要:叙述如何通过Binding的另外两个属性:Source和RelativeSource来设定绑定源,以及“如何让数据可以当作绑定源”和“如何在格式化转换源数据” 阅读全文

posted @ 2010-12-21 14:20 I过T 阅读(3127) 评论(0) 推荐(3)

WPF程序设计指南: Binding(数据绑定)[上]
摘要:介绍简单的WPF数据绑定 阅读全文

posted @ 2010-12-20 20:43 I过T 阅读(5587) 评论(4) 推荐(2)

WPF程序设计指南:Resource
摘要:详细介绍了WPF中资源的使用 阅读全文

posted @ 2010-12-18 16:37 I过T 阅读(5256) 评论(5) 推荐(4)

WPF程序设计指南:Style
摘要:详解WPF中的Style 阅读全文

posted @ 2010-11-29 16:28 I过T 阅读(2063) 评论(0) 推荐(0)

WPF: 使用TestApi模拟用户输入
摘要:介绍模拟用户输入的一些方式,以及TestApi在WPF中的应用方法 阅读全文

posted @ 2010-11-23 11:05 I过T 阅读(1043) 评论(0) 推荐(2)

WPF Rendering 3(硬件加速、软件加速)之:Performance profiling-Perforator
摘要:第三天(11/17/2010)step 3: Practice1. 找一个Animation的demo(要求绚一点的,像素丰富,并将动画速度调快,以提高画面显示难度),在其中加入一个计时器,每隔一段时间修改当前进程的RenderOptions.ProcessRenderMode, 代码如下:[代码]2. 运行以上函数,并运行windows sdk 中的的工具:Performance profili... 阅读全文

posted @ 2010-11-17 19:12 I过T 阅读(2098) 评论(0) 推荐(0)

WPF Rendering 2(硬件加速、软件加速)
摘要:第二天(11/16/2010)step 2: abstract1. RenderCapability 类:Enables WPF applications to query for the current rendering tier for their associated Dispatcher object and to register for notification of changes... 阅读全文

posted @ 2010-11-16 15:28 I过T 阅读(2597) 评论(0) 推荐(0)

WPF Rendering 1(硬件加速、软件加速)
摘要:Plan:Area: Graphics Title: Rendering Scenario:1. Use software rendering2. Use hardware rendering3. IterateStress Attack Point:Memory leak – Graphics rendering leaking Failure: Out of memoryEstim... 阅读全文

posted @ 2010-11-15 17:56 I过T 阅读(3883) 评论(0) 推荐(0)

WPF程序设计指南:XAML
摘要:1. ML是XAML的一个应用。 例1:一个合法片段,展现了控件以及element的嵌套层次结构:代码 指定WPF程序所需的命名空间,我们利用“xmlns”这个attribute来声明默认的XML命名空间。此命名空间会被应用于声明出现的element以及其下的每个孩子 WPF命名空间指定方法: xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation 例2:一个完整的XMAL文件内容: 2. 关于root element XML 文件只能有一个root element, 它可以是继承自FrameworkElement的任何类 阅读全文

posted @ 2010-08-23 16:16 I过T 阅读(1755) 评论(0) 推荐(1)

WPF程序设计指南: The Application and the Window
摘要:1. 最简单的WPF程序:A console application project: say hello. 需要引用的DLL: PresentationCore, PresentationFramework, System, WindowBase代码注:可在Project -Properties菜单中设置OutPut Type为“console Application” 或者 “Window Application”一个程序只能创建一个Application对象,对于程序其他地方来说,此application对象的作用就如同固定的锚一般。Run方法必须保留到最后,Run方法一旦被调用,就不 阅读全文

posted @ 2010-08-17 21:25 I过T 阅读(609) 评论(0) 推荐(0)

WPF中的MVVM模式:View与ViewModule的交互个人总结
摘要:出处:http://www.cnblogs.com/oliverxgwang/archive/2009/07/28/1532678.html在MVVM模式中,viewer负责向用户展示软件设计意图,以期获得最佳的用户体验。VM则负责实现(一定的)业务逻辑,响应Viewer要求,达到隔离业务逻辑的目的。在实际开发中,两者如何进行交互往往是比较头痛的事情。现将开发中用到的交互方法总结一下:一、使用Bi... 阅读全文

posted @ 2010-07-29 11:12 I过T 阅读(1253) 评论(1) 推荐(1)

WPF中的MVVM模式:How to render dynamic controls on the fly in MvvM pattern
摘要:出处:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/1be16a18-ab9c-4381-952a-4aa642f159e1For MVVM, we usually use ViewModel to get raw data from data source and create public properties for raw... 阅读全文

posted @ 2010-07-29 11:09 I过T 阅读(481) 评论(0) 推荐(0)

WPF中的MVVM模式:WPF中MVVM模式原理分析与实践
摘要:转自网络,出处不详。1, 前提 可以说MVVM是专为WPF打造的模式, 也可以说MVVM仅仅是MVC的一个变种, 但无论如何, 就实践而言, 如果你或你的团队没有使用"Binding"的习惯, 那么研究MVVM就没有多大意义. 另外,个人觉得, 使用Command以及打造一种合理的简化的方式去使用Command也与使用Binding一样重要.2, 诞生 为了解决现实世界中的问题,我们需要将现实世界... 阅读全文

posted @ 2010-07-29 11:06 I过T 阅读(914) 评论(1) 推荐(0)

WPF中的MVVM模式:WPF模式思考
摘要:出处:http://www.cnblogs.com/winkingzhang/archive/2008/12/01/1344816.htmlIntroductionSince XAML things have become a bit complicated in trying to conceptualize MVC architectures for Windows applications.... 阅读全文

posted @ 2010-07-29 11:02 I过T 阅读(668) 评论(0) 推荐(0)

导航