下载并安装Prism5.0库 Download and Setup Prism Library 5.0 for WPF(英汉对照版)
Learn what’s included in Prism 5.0 including the documentation, WPF code samples, and libraries. Additionally find out where to get the library and sample source code and the library NuGet packages.
Prism5.0中包含了文档,WPF代码示例,程序集。本篇告诉你从哪里获取程序集和代码示例,还有NuGet包的内容。
For a list of the new features, assets, and API changes, see What's New in Prism 5.0.
对于新功能,资产,和API的更改信息,请看Prism5.0新内容.
Documentation 文档
Prism includes the following documentation:
Prism包含以下文档:
- Developer's Guide to Microsoft Prism 5.0 on MSDN. 在MSDN上的Prism5.0开发者指南.
- Prism Reference Documentation on MSDN. Prism在MSDN上的参考文档.
- Developer's Guide to Microsoft Prism 5.0 in .pdf format. PDF版的Prism5.0开发者指南.
- Prism Reference Documentation in chm format. chm格式的Prism参考文档.
NuGet Packages NuGet包
- Prism: Downloads NuGet dependency packages—Prism.Composition, Prism.Interactivity, Prism.Mvvm, and Prism.PubSubEvents NuGet Packages.
- Prism.Composition: Modularity, UI Composition, Bootstrapping, Interactivity, IActiveAware, Navigation, and deprecated NotificationObject and PropertySupport.
- Prism.Interactivity: Interactivity.
- Prism.Mvvm: The Portable Class Library for MVVM and the associated platform specific code to support MVVM. Includes Commanding, BindableBase, ErrorsContainer, IView, and ViewModelLocationProvider.
- Prism.PubSubEvents: The Portable Class Library for PubSubEvents.
- Prism.UnityExtensions: Use these extensions to Prism to build Prism applications based on Unity.
- Prism.MefExtensions: Use these extensions to Prism to build Prism applications based on Managed Extensibility Framework (MEF).
The following table shows common Prism namespaces and in which assemblies and NuGet packages they can be found.
下表显示Prism公共命名空间。并限塑令额你从哪个程序集和从哪个NuGet包可以找到它。
Namespace |
Assembly |
NuGet Package |
---|---|---|
Microsoft.Practices.Prism.Logging Microsoft.Practices.Prism.Modularity Microsoft.Practices.Prism.Regions |
Microsoft.Practices.Prism.Composition |
Prism.Composition |
Microsoft.Practices.Prism.Interactivity |
Microsoft.Practices.Prism.Interactivity |
Prism.Interactivity |
Microsoft.Practices.Prism.Commands Microsoft.Practices.Prism.Mvvm Microsoft.Practices.Prism.ViewModel |
Microsoft.Practices.Prism.Mvvm |
Prism.Mvvm |
Microsoft.Practices.Prism.PubSubEvents |
Microsoft.Practices.Prism.PubSubEvents |
Prism.PubSubEvents |
Download and Setup the Prism Source Code 下载并安装Prism源代码
This section describes how to install Prism. It involves the following three steps:
此节描述了怎样安装Prism。分三步:
- Install system requirements. 安装系统需求。
- Download and extract the Prism source code and documentation. 下载并提取Prism库中的源码和文档。
- Compile and run the QuickStarts, Reference Implementation, or Prism Library source code. 编译并运行快速入门,参考实现,或Prism源码。
Step 1: Install System Requirements 第一步:安装系统需求
Prism was designed to run on the Microsoft Windows 8 desktop, Microsoft Windows 7, Windows Vista, or Windows Server 2008 operating system. WPF applications built using this guidance require the .NET Framework 4.5.
在Win8,Win7,Vista,Server2008操作系统上,可运行Prism。用Prism5.0需要.NET Framework 4.5。
Before you can use the Prism Library, the following must be installed:
在你使用Prism库之前,下面两项必须安装:
- Microsoft .NET Framework 4.5 (installed with Visual Studio 2012) or Microsoft .NET Framework 4.51.
- Microsoft Visual Studio 2012 or 2013 Professional, Premium, or Ultimate editions.
Note:注意 |
---|
Visual Studio 2013 Express Edition can be used to develop Prism applications using the Prism Library. Visual Studio 2013 Express Edition 可以被用作开发Prism应用程序。 |
Optionally, you should consider also installing the following:
可选的,你可以考虑安装这个:
- Microsoft Blend for Visual Studio 2013. A professional design tool for creating compelling user experiences and applications for WPF.
Step 2: Download and Extract the Prism Source Code and Documentation 第二步:下载并提取Prism库源码和文档
You can download the source code for the Prism library, the reference implementation and the QuickStarts from the following link:
Prism库中的一些源码时可以下载到的,下面是参考实现和快速入门示例的下载链接:
To install the Prism assets, right-click the exe file or zip file, and then click Run as administrator. This will extract the source code into the folder of your choice.
右击刚刚下载的exe或zip文件,然后以管理员身份运行。这样做将会提取出Prism库源代码,放到你选择存放的文件夹中。
Note:注意 |
---|
The Stock Trader Reference Implementation and the QuickStarts can also be downloaded separately. The table below provides links to the source code for each. 股票操盘参考实现和快速入门示例都可以被单独下载,下表分别提供了每个示例下载的连接。 |
Sample 示例 |
Category 类型 |
Description 描述 |
---|---|---|
Stock Trader Reference Implementation 股票操盘参考示例 |
Prism |
The Stock Trader RI application is a reference implementation that illustrates the baseline architecture. Within the application, you will see solutions for common, and recurrent, challenges that developers face when creating composite WPF applications. 股票操盘应用程序是一个描述Prism基本架构的参考实现。在程序中,你将看到一些我们开发组合式WPF应用时面临的公共的,重复遇到的,富有挑战的问题。 The Stock Trader RI illustrates a fictitious, but realistic financial investments scenario. Contoso Financial Investments (CFI) is a fictional financial organization that is modeled after real financial organizations. CFI is building a new composite application to be used by their stock traders. 股票操盘应用程序是一个模拟程序,但是一个现实的金融投资方案。Contoso Financial Investments (CFI) 是个模拟现实金融机构的虚拟机构。CFI想构建你哥给他们股民使用的组合式应用程序。 |
Hello World动手实验室 |
Get Started 入门 |
The Hello World Hands-on Lab demonstrates the end solution for the hands-on lab "Getting Started Using the Prism Library 5.0 for WPF Hands-on Lab." In this lab, you will learn the basic concepts of Prism and apply them to create a Prism Library solution that you can use as the starting point for building a composite WPF. 在Hello World动手实验室示例中,你将看到一些Prism基本概念,你可以用这些概念作为你创建组合式WPF应用的一个起点。 |
Unity模块化入门
MEF模块化入门
|
Modularity 模块化 |
The Modularity QuickStarts demonstrate how to code, discover, and initialize modules using Prism. These QuickStarts represent an application composed of several modules that are discovered and loaded in the different ways supported by the Prism Library using MEF and Unity as the composition containers. 模块化快速入门演示了怎样利用Prism编码,发现,及初始化模块。这些快速入门展示了以不同方式发现并加载模块,利用Unity或是MEF作为组合容器。 |
MVVM快速入门 |
MVVM |
The MVVM QuickStart demonstrates how to build an application that implements the MVVM presentation pattern, showing some of the more common challenges that developers can face, such as wiring a view and view model using the ViewModelLocator, validation, UI interactions, and data templates. MVVM快速入门演示了怎样构建一个实现了MVVM模式的程序,内含使用ViewModelLocator连接视图和视图模型,验证,UI交互,和数据模板。 |
命令快速入门 |
Commanding |
The Commanding QuickStart demonstrates how to build a WPF UI that uses commands provided by the Prism Library to handle UI actions in a decoupled way. 命令快速入门展示了怎样构建一个用Prism命令处理UI动作的WPF界面。利用Prism命令还是一中松耦合的方式。 |
组合式UI快速入门 |
UI Composition |
This QuickStart demonstrates how to build WPF UIs composed of different views that are dynamically loaded into regions and that interact with each other in a decoupled way. It illustrates how to use both the view discovery and view injection approaches for UI composition. 此示例描述了怎样组合不同的视图,视图的加载方式,以松耦合的方式交互。它说明怎样使用视图发现和视图注入方法来组合UI。 |
State-Based Navigation QuickStart 基于状态导航快速入门 |
Navigation |
This QuickStart demonstrates an approach to define the navigation of a simple application. The approach used in this QuickStart uses the WPF Visual State Manager (VSM) to define the different states that the application has and defines animations for both the states and the transitions between states. 此示例描绘了一个定义一个简单应用程序导航的方法。就是使用WPF视图状态管理器(VSM),去定义不同的状态的动画及不同状态间的切换动画。 |
View-Switching Navigation QuickStart 视图切换导航快速入门 |
Navigation |
This QuickStart demonstrates how to use the Prism Region Navigation API. The QuickStart shows multiple navigation scenarios, including navigating to a view in a region, navigating to a view in a region contained in another view (nested navigation), navigation journal support, just-in-time view creation, passing contextual information when navigating to a view, views and view models participating in navigation, and using navigation as part of an application built through modularity and UI composition. 此示例描述怎样使用Prism区域导航API。示例展示多个导航场景,包含导航一个区域内的视图,导航一个嵌套在一个视图中的区域的视图。导航记录支持,即时视图创建,导航时传递上下文,视图和视图模型参与导航,和使用导航作为程序模块化和组合UI的一部分。 |
事件聚合快速入门 |
Event Aggregation |
This QuickStart demonstrates how to build a WPF application that uses the Event Aggregator service. This service enables you to establish loosely coupled communications between components in your application. 此示例描述了怎样构建一个使用了事件聚合的WPF应用程序。此服务可以让你的组件可以松耦合的通信。 |
交互快速入门 |
Interactivity |
This QuickStart demonstrates how to create a view and view model that work together when the view model needs to interact with the user or user gesture needs to raise an event that invokes a command. In each of these scenarios the view model should not need to know about the view. The first scenario is handled by using and InteractionRequestTriggers. The second scenario is handled by InvokeCommandAction. 此示例展示了怎样让视图和视图模型共同工作,当视图模型需要和用户交互式时。视图模型不需要知道视图。第一个场景是用InteractionRequestTriggers 处理交互。第二个场景使用InvokeCommandAction 处理交互。 |
Step 3: Compile and Run QuickStarts, Reference Implementation, or Prism Library Source Code 第三步:编译和运行快速入门,参考实现,或者Prism源代码
In order to build and run the reference implementation and the QuickStarts, select the appropriate shortcut file and press F5 to build and run.
为了构建和运行参考实现和快速入门,需要选择对应的快捷文件并按F5编译运行。
The reference implementation and QuickStarts use NuGet references to the Prism library assemblies so you can compile and run each solution directly.
参考实现和快速入门中的Prism程序集是用的NuGet引用,所有你可以直接编译并运行它们。
Adding Prism Library Source Projects to Solutions 添加Prism库源项目到解决方案
As part of shipping the Prism Library as NuGet packages, the Prism Library projects were removed from the solutions of all QuickStarts and reference implementation projects. If you are a developer accustomed to stepping through the Prism Library code as you build your application, there are a couple of options:
快速入门,参考实现,这些示例内都是用NuGet包来引用的Prism程序集,你要想使用Prism源代码,有以下选择:
- Add the Prism Library Projects back in. To do this, right-click the solution, point to Add, and then click Existing project. Select the Prism Library projects. Then, to prevent inadvertently building these, click Configuration Manager on the Build menu, and then clear the Build check box for all Prism Library projects in both the debug and release configurations.
- Set a breakpoint and step in. Set a break point in your application's bootstrapper, and then step in to a method within the base class (F11 is the typical C# keyboard shortcut for this). You may be asked to locate the Prism Library source code, but often, the full program database (PDB) file is available and the file will simply open. You may set breakpoints in any Prism Library project by opening the file and setting the breakpoint.
Related Downloads 相关下载
下载并安装Prism5.0库 Download and Setup Prism Library 5.0 for WPF(英汉对照版)的更多相关文章
- 2: 使用Prism初始化程序 Initializing Applications Using the Prism Library 5.0 for WPF(英汉对照版)
This topic addresses what needs to happen to get a Prism for WPF application up and running. A Prism ...
- Prism5.0开发人员指南内容 Contents of the Developer's Guide to Prism Library 5.0 for WPF(英汉对照版)
The Prism for WPF guide contains the following topics: Prism指南包含以下内容: Download and Setup Prism 下载并安装 ...
- Prism5.0新内容 What's New in Prism Library 5.0 for WPF(英汉对照版)
Prism 5.0 includes guidance in several new areas, resulting in new code in the Prism Library for WPF ...
- 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 e ...
- 1: 介绍Prism5.0 Introduction to the Prism Library 5.0 for WPF(英汉对照版)
Prism provides guidance designed to help you more easily design and build rich, flexible, and easy- ...
- 4: 模块化应用程序开发 Modular Application Development Using Prism Library 5.0 for WPF (英汉对照版)
A modular application is an application that is divided into a set of loosely coupled functional uni ...
- 3: 组件间的依赖管理 Managing Dependencies Between Components Using the Prism Library 5.0 for WPF(英汉对照版)
Applications based on the Prism Library are composite applications that potentially consist of many ...
- 下载并安装Prism5.0库(纯汉语版)
Prism5.0中包含了文档,WPF代码示例,程序集.本篇告诉你从哪里获取程序集和代码示例,还有NuGet包的内容. 对于新功能,资产,和API的更改信息,请看Prism5.0新内容. 文档 Pris ...
- 【Python基础】安装python第三方库
pip命令行安装(推荐) 打开cmd命令行 安装需要的第三方库如:pip install numpy 在安装python的相关模块和库时,我们一般使用“pip install 模块名”或者“pyth ...
随机推荐
- 链路的有效性检测 及 基于TCP的通信为什么需要RETRY
一.链路的有效性检测 当网络发生单通.连接被防火墙Hang住.长时间GC或者通信线程发生非预期异常时,会导致链路不可用且不易被及时发现. 特别是异常发生在凌晨业务低谷期间,当早晨业务高峰期到来时,由于 ...
- 企业内部安全宣贯:乌云网停摆事件的思考与评论——By Me
2016年7月20日,“自由平等开放的漏洞报告平台”乌云网[1] 被迫停摆,包括乌云网创始人方小顿[2] 在内的多名高管突然被捕.乌云的存在可以说是为了修复人们长期缺失的安全意识和堪忧的安全生态,但是 ...
- linux基础命令(2)
1 nohup命令 如果你正在运行一个进程,而且你想在退出帐户/关闭终端之后继续运行相应的进程,可以使用这个命令,nohup就是不挂起的意思no hang up. 用法: nohup command ...
- Excel数据常用操作,vlookup,text,trim,数据格式导致出错
数据有缺漏,需要在数据前面补零 =TEXT(F70,"000000") 前面是要操作的数据,后面是补几位 匹配数据(将一个表格中的数据进行匹配) =VLOOKUP(C2,aaa,4 ...
- Python 字符串连接问题归结
一.概述 Python 字符串连接场景较为普遍.由于编者对 Java 等语言较为熟悉,常常将两者语法混淆. 加之,Python 语法较为灵活.例如,单单实现字符串连接,就有数种方法.在此,一并归结! ...
- Generative model 和Discriminative model
学习音乐自动标注过程中设计了有关分类型模型和生成型模型的东西,特地查了相关资料,在这里汇总. http://blog.sina.com.cn/s/blog_a18c98e50101058u.html ...
- Hbase1.2.4概述
安装Hbase的时候,需要注意版本与Hadoop的版本兼容,具体查看:https://hbase.apache.org/book.html#basic.prerequisites 如下图: 我的Had ...
- ubuntu 16.04安装navicat for mysql
下载地址:官网https://www.navicat.com/download 1.下载 navicat120_mysql_en_x64.tar.gz 文件 2.下载后移到/opt/下 3.解压ta ...
- kill、PKill、xkill 和killall----杀死进程
终止一个进程或终止一个正在运行的程序,一般是通过kill .killall.pkill.xkill 等进行.比如一个程序已经死掉,但又不能退出,这时就应该考虑应用这些工具.另外应用的场合就是在服务器管 ...
- mysql的常用语句
Mysql的常用语句 -- 创建表 create table tableName( id int primary key, name varchar(20) ) -- 查询 select * from ...