1、 I 基于 WPF 的文档编辑软件的设计和实现 摘 要 随着用户需求复杂化,目前大部分应用程序已逐渐不能满足更高、更全方位 的用户体验要求。 为给用户提供更具视觉效果的体验, 微软在最新发布的 Windows Vista 开发库中引入全新的图形子系统 Windows Presentation Foundation(WPF) 。 本设计是对 WPF 结构及其所提供的技术和方法进行初步探讨,并应用 WPF 技术设计实现文档编辑软件。本设计以.NET Framework3.0 技术为背景,采用统一 编程模型,确定设计和代码分离的开发框架。使用微软最新开发工具 Expression Blend 开发用
2、户界面和控件,运用 WPF 提供的服务及对开发和设计的统一,实现 文本编辑窗体及丰富的用户体验, 并将其生成为 XMAL 资源文档。 最后在 VS2010 中导入相关资源文档,实现后台逻辑代码并导入 XML 数据存储文档,初步实现具 有较丰富文本编辑功能的文本编辑软件。 关键词:WPF,XAML,窗体,文本编辑 II The design of WPF-based document editing software ABSTRACT As the requirements of users become more and more complex, the majority of applic
3、ations have gradually failed to meet users demand for greater and all-round user experience now. In order to provide more effective visual experience to UI, Microsoft brings out a new graphics subsystem named Windows Presentation Foundation (WPF) in the latest release of Windows Vista development li
4、brary. The main content of the present design is to discuss WPFs structure, the techniques and methods it provides. And with the application of the technology we can realize the design of WPF-based document editing software .On the background of techniques of .NET Framework3.0, the present design uses a unified programming model under which UI and the logical code are separated. In this design, the UI and controls are developed by the latest Microsoft development tool, Expression Blend, usin