如果你选择WPF,多半原因是因为折服于它那震撼性的用户体验。纵观WPF整个知识体系,其内容并不复杂,但却比较细碎,不易理清。以下内容是对WPF部分内容的简单概括,希望读者能够对WPF框架有个大体认识。
WPF的常用类型如下:
WPF使用设备无关单位度量。一个设备无关单位被定义为1/96英寸。WPF使用下面的公式进行计算:
[物理单位尺寸]=[设备无关单位尺寸]*[系统DPI]
- 与Windows窗体相比 缺少类似以下功能或控件:MaskedTextBox,DataGridView,WebBrower,PropertyGrid,ErrorProvider,HelpProvider,MDI等。
- 与Silverlight相比 WPF浏览器应用程序需要.NET Framework支持,而Silverlight程序仅仅需要客户端安装播放器。