Prism开发人员指南5-WPF开发 Developer's Guide to Microsoft Prism Library 5.0 for WPF (英汉对照版)

April 2014
2014四月
 
  Prism provides guidance in the form of samples and documentation that help you easily design and build rich, flexible, and easily maintained Windows Presentation Foundation (WPF) desktop applications. Using design patterns that embody important architectural design principles, such as separation of concerns and loose coupling, Prism helps you to design and build applications using loosely coupled components that can evolve independently but which can be easily and seamlessly integrated into the overall application. In short, these applications are "built to last" and "built for change." These types of applications are known as composite applications.
    Prism以示例和文档的形式帮助你更简单的设计丰富灵活易维护的WPF程序。其中使用的设计模式体现了一些重要的设计原则,例如分离关注点和松耦合,Prism帮助你利用松耦合组件设计和构建应用程序。松耦合组件是指可以单独开发的,却又容易集成到整个应用程序的组件。简而言之,利用Prism构建的程序是“为以后而构建”和“为改变而构建”。这样的程序也被说成是组合式应用程序。
 
This topic provides a brief overview of the Prism concepts with links to associated source code and documentation. If you are considering upgrading from Prism 4.1 to Prism 5.0 we include a "What’s New" and "Upgrading from Prism 4.1" topic that you should read.
    本篇内容是Prism相关概念的简明介绍,还附带了一些相关源代码和文档的连接。如果你以前用的是Prsim4.1,现在想升级到5.0,那么你该读读“新增内容”和“从Prism4.1升级”连篇内容。
 
Note: For Silverlight Applications use Prism 4.1.
    注意:Silverlight应用程序该使用 Prism 4.1.(看来Prism5.0是专门为WPF设计的)
 

Getting Started 入门 

  Where to start depends on your goals and what you already know. Learn, Develop and Deploy Applications, and Upgrade from Prism 4.1 should help you understand if Prism makes sense in your application and how to get started.

    从哪里开始学习Prism5.0取决你的目标和你已掌握了多少东西。这里有三个出发点:学习Prism、 开发和部署应用程序、和从Prism4.1升级。

  Learn: If you are new to Prism, this is a good place to start. You should also read through the remaining content in this topic.

  学习Prism: 如果你刚接触Prism,从这里开始是你正确的选择。除此之外其他两块的内容你也应该读读。

 
  Develop and Deploy Applications: If you want to create a Prism Hello World application and deploy it then go through these topics. If you want to more fully understand how to utilize specific Prism capabilities in your application then read the content below.
    开发和部署应用程序:如果你想要创建“Hello World”应用程序并部署它,那你就看看下面的章节。如果你想更详尽的了解Prism的能力,那你就看看上面“学习Prism
中的章节。
 

  Upgrade from Prism 4.1: Read the topics below so you can perform a cost benefit analysis of upgrading to Prism 5.0.

    从Prism4.1升级:读下面的文章,可以知道把您的程序升级到Prism5.0到底值呢?还是不值呢。

 

Introduction 介绍 

  Learn how to create a composite application from loosely coupled WPF components that can evolve independently using the Prism library.

  学习利用Prism库开发一个由各个独立开发的松耦合WPF组件组成的组合式应用程序。(我想我翻译明白了,仔细读读。换句话说:利用Prism,可以开发一个组合式的应用程序,这个应用程序是由多个松耦合的WPF组件组成的)
  
 

Initializing Prism Applications 初始化Prism应用

  Learn how to get a Prism for Window Presentation Foundation (WPF) application up and running – bootstrapping the application.
    学习怎样启动并运行一个Prism应用 —— 引导应用程序
  
 

Managing Dependencies Between Components 管理组件间的依赖

  Create maintainable apps using dependency injection to manage components’ dependencies and lifetimes, facilitate testing, and wire views to view models.
    使用依赖注入去管理组件之间的依赖,依赖注入还能管理组件的生命周期,方便组件代码的测试,和连接视图到视图模型上等能力。依赖注入的程序是易维护的。
  
 

Modular Application Development 模块化应用程序开发

   Learn how to create a loosely coupled modular application that is easier to develop, test, deploy, and extend.
     学习怎样创建一个松耦合的模块化应用,可以轻松开发,测试,部署,和扩展。
  

MVVM Pattern MVVM模式

  Learn how the MVVM pattern makes your app easier to test, maintain, and evolve. It improves code re-use and allows developers and designers to collaborate. Learn how to use composite commands, handle asynchronous interactions, implement user interaction patterns, and wire views to view models using MVVM.

       MVVM模式可以让程序更易测,更易维护。还能提高代码的重复使用率,允许开发者和设计者更容易的合作。我们还需了解在MVVM模式下怎样使用组合式命令,处理异步交互,实现用户交互模式,连接视图到视图模型上。

  

  Download code:下载代码

  More info:更多信息

 

Composing the User Interface 组合式界面

  Learn how to compose your UI from loosely coupled WPF visual components for modular application. Create designer-friendly UIs with design time data.

    学习怎使用松耦合的WPF视觉组件构建你的界面。创造出对设计友好的有设计时数据的界面。

   

  Download code:下载代码

  More info:更多信息

 

Navigation 导航

  Learn how to navigate between views in composite WPF applications that use the MVVM pattern. Use either state-based or view-based navigation.

    MVVM模式下,组合式WPF应用的视图是如何利用导航切换的呢?下面主要介绍两种导航,基于状态导航和基于视图导航。

  

Communicating Between Loosely Coupled Components 松耦合组件之间的通信

  Decide when to use the different loosely coupled communication mechanism works for your modular application: commands, region context, shared services, and event aggregation.

      松耦合的模块间是通过什么机制通信的呢?有这样几种方式:命令,区域上下文,共享服务,事件聚合。

  
 

  Download code:下载代码

  More info:更多信息

 

Deploying Prism Applications 部署Prism应用

  Learn the deployment options for a composite WPF application – Xcopy, ClickOnce, and Windows Installer.

    部署组合式WPF应用,三种方式:Xcopy ,ClickOnce, Windows Installer.

  

  More info:更多信息

 

Patterns in Prism Prism中的模式

  Learn the different patterns the Prism library and associated reference implementation demonstrate.

    学习Prism中的模式,还有看看相关的参考实现演示。

  

  Download code:下载代码

  More info:更多信息

 

Prism Library Prsim库

  Learn who the Prism library for WPF was developed for, how it is organized, how to modify the source, and how to run the associated tests.

    看看Prism库是为谁开发的,库中的内容是如何组织的,怎样更改源代码,怎样运行相关测试。

  

  Download code and binaries:下载代码和程序集

  More info:更多信息

 

Upgrading from Prism 4.1 从Prsim4.1升级

  Learn how to upgrade your existing Prism 4.1 projects and solutions to Prism 5.0. This includes changes to references, namespaces, and APIs.

    学习怎样从Prsim4.1项目升级到Prsim5.0。这里包含改变的引用,命名空间,和APIs。

  More info:更多信息

 

Extending the Prism Library 扩展Prism库

  Learn how to modify Prism default behavior including bootstrapping, container, logging, modularity, regions, navigation, and view model locator.

    怎样更改Prism默认行为:引导,容器,日志,模块,区域,导航,还有视图模型定位器。

  More info:更多信息

 

License 许可证

 

What's Next 接下来

  • Prism Download: Download source or documentation, get links to the NuGet packages, or see the full content of this Prism release.
            Prism 下载:下载源码或者文档,获取NuGet包连接,或者浏览此Prism版本的全部内容。
  • Introduction: Read the next topic in the Prism documentation.
            介绍:阅读下一篇文章。
 

Community 社区

  Prism's community sites are: 

  Prism社区网站是:

  On these community sites, you can post questions, provide feedback, or connect with other users for sharing ideas.

    这这些社区网站上,你可以提交问题,提供反馈,或者联系其他开发者分享你的想法。

 

Prism Team Blogs Prism 团队博客

  Stay informed and up to date about Prism and patterns & practices.

    随时了解Prism信息和 patterns & practices(模式与实践).

Name

Blogs and Home Pages

Twitter

Blaine Wastell

http://blogs.msdn.com/b/blaine/

@blainewastell

Francis Cheung

http://blogs.msdn.com/b/francischeung/

 

patterns & practices

http://www.microsoft.com/practices

@mspnp

 

The Team Who Brought You This Guide 为你带来本指南的团队

  Prism was produced by the following individuals:

  Prism是下面这些大神制作的

  patterns & practices Team:

  patterns & practices团队:

Microsoft Corporation

Blaine Wastell, Francis Cheung, Nelly Delgado, Rohit Sharma, RoAnn Corbisier

Southworks SRL

Diego Poza

Icertis Inc.

Poornimma Kaliappan


  Contributors to the previous release of this guidance:

  此指南之前版本的贡献者:

Microsoft Corporation

Blaine Wastell, Bob Brumfield, David Hill, Karl Shifflett, Larry Brader, Michael Puleio, Nelly Delgado

Clarius Consulting

Fernando Simonazzi

Infosys Technologies Ltd

Mani Krishnaswami, Meenakshi Krishnamoorthi, Rathi Velusamy, Ravindra Varman, Sangeetha Manickam, Sanghamitra Chilla

Software Insight

Brian Noyes

Southworks SRL

Diego Poza, Fernando Antivero, Geoff Cox, Matias Bonaventura

TinaTech, Inc.

Tina Burden

Modeled Computation

Sharon Smith, Katie Niemer


  Many thanks to the following advisors who provided invaluable assistance:

  感谢下面这些人的帮助

  Bill Wilder of Fidelity Investments, Brian Noyes of Solliance, Brian Lagunas of Infragistics, Clifford Tiltman of Morgan Stanley, Rob Eisenberg of Blue Spire, Norman Headlam, Ward Bell of IdeaBlade, Paul Jackson of CM Group Ltd., John Papa of Microsoft, Julian Dominguez of Clarius Consulting, Ted Neveln of Ballard Indexing Services, Glenn Block of Microsoft, Michael Kenyon of IHS, Inc., Terry Young of PEER Group, Jason Beres of Infragistics, Peter Lindes of The Church of Jesus Christ of Latter-day Saints, Mark Tucker of Neudesic, LLC, David Platt of Rolling Thunder Computing, Steve Gentile of Strategic Data Systems, Markus Egger of EPS Software Corp. and CODE Magazine, Ryan Cromwell of Strategic Data Systems, Todd Neal of McKesson Corp, Dipesh Patel of Fidelity Investments, and David Poll of Microsoft.

 
译注:Prism库的意思是下载的Prism文件,里面包含了很多内容,文档和示例代码等等。单说Prism,就是说Prism这个框架。
原文地址:https://www.cnblogs.com/DoubleChen/p/3680109.html