没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
342页
Prism provides guidance designed to help you more easily design and build rich, flexible, and easily maintained Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 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. These types of applications are known as composite applications.
资源推荐
资源详情
资源评论
Page 1
Contents of the Guide
The guide contains the following topics:
Readme
What's New in Prism 4.0
Chapter 1: Introduction
Chapter 2: Initializing Prism Applications
Chapter 3: Managing Dependencies Between Components
Chapter 4: Modular Application Development
Chapter 5: Implementing the MVVM Pattern
Chapter 6: Advanced MVVM Scenarios
Chapter 7: Composing the User Interface
Chapter 8: Navigation
Chapter 9: Communicating Between Loosely Coupled Components
Chapter 10: Sharing Code Between Silverlight and WPF
Chapter 11: Deploying Prism Applications
Appendix A: Glossary
Appendix B: Patterns in the Prism Library
Appendix C: Prism Library
The following topics are included in the documentation when you download Prism and on MSDN:
Appendix D: Upgrading from Previous Versions
Upgrading from Prism 2.x
Upgrading from the Composite Application Guidance for WPF 1.0
Upgrading from the Composite UI Application Block
Appendix E: Extending Prism
Appendix F: Reference Implementations
Stock Trader Reference Implementation
MVVM Reference Implementation
Appendix G: QuickStarts
Modularity QuickStarts for WPF
Modularity QuickStarts for Silverlight
Basic MVVM QuickStart
MVVM QuickStart
Commanding QuickStart
UI Composition QuickStart
State-Based Navigation QuickStart
View-Switching Navigation QuickStart
Event Aggregation QuickStart
Multi-Targeting QuickStart
Appendix H: Prism Hands-On Labs
WPF Hands-On Lab: Get Started with Prism
Silverlight Hands-On Lab: Get Started with Prism
WPF Prism Deployment Hands-On Lab: Publishing and Updating with ClickOnce
Bibliography
Copyright
Page 2
Prism 4.0 Readme
What's Included in This Release
The following assets are shipped with Prism 4.0:
Signed Prism Library for Windows Presentation Foundation (WPF) and Silverlight
Signed Prism Library for Windows Phone 7
Batch file to create custom Prism Library binaries
Batch file to register the Prism Library binaries with Visual Studio
Model-View-ViewModel Reference Implementation (MVVM RI)
Stock Trader Reference Implementation (Stock Trader RI)
Prism 4.0 documentation
QuickStarts:
New or updated QuickStarts in Prism 4.0:
Basic MVVM QuickStart
MVVM QuickStart
Modularity QuickStarts (with MEF and Unity)
State-Based Navigation QuickStart
View-Switching Navigation QuickStart
UI Composition QuickStart
QuickStarts ported from Prism 2.x:
Commanding QuickStarts
Event Aggregation QuickStarts
Multi-Targeting QuickStarts
Hello World QuickStarts
With the exception of the MVVM, Navigation, and UI Composition QuickStarts, there are two solutions for each
QuickStart, one that targets WPF and one that targets Silverlight.
For a list of the new features, assets, and API changes, see What's New in Prism 4.0.
Note:
For more information about using Prism on Windows Phone 7, see the Windows Phone 7 Developer Guide community
site on CodePlex (http://wp7guide.codeplex.com/).
Installing Prism
This section describes how to install Prism. It involves the following three steps:
1.
Install system requirements.
2.
Extract the Prism source code, binaries, and documentation.
3.
Register the Prism binaries.
Step 1: Install System Requirements
Prism was designed to run on the Microsoft Windows 7, Windows Vista, or Windows Server 2008 operating system.
This version has been smoke tested on Windows XP Professional and Windows Server 2003, but it has not been
exhaustively tested. WPF applications built using this guidance require the .NET Framework 4.0, and Silverlight
applications require Silverlight 4.
Before you can use the Prism Library, the following must be installed:
Microsoft .NET Framework 4.0 (installed with Visual Studio 2010)
Microsoft Visual Studio 2010 Professional, Premium, or Ultimate editions
Note:
Visual Studio 2010 Express Edition can be used to develop Prism applications using the Prism Library.
If you are developing Silverlight applications, the following must be installed:
Page 3
Microsoft Silverlight 4 Tools for Visual Studio 2010 (required for Silverlight development; includes the developer
Silverlight runtime)
Note:
Although the Silverlight Tools for Visual Studio 2010 are not required, it is recommended for all WPF and Silverlight
developers to download and use the latest version of the Silverlight Tools for Visual Studio 2010.
The WPF and Silverlight Designer for Visual Studio is updated together with the Silverlight developer runtime and
software development kit (SDK), which are included in the download. These updates come in the form of new
features and bug fixes.
Optionally, you should consider also installing the following:
Microsoft Expression Blend 4. A professional design tool for creating compelling user experiences and applications
for WPF and Silverlight.
Windows Phone Developer Tools SDK. For Windows Phone 7 development.
Step 2: Extract the Prism Source Code, Binaries, and Documentation
To install the Prism assets, right-click the Prismv4.exe file, and then click Run as administrator. This will extract the
source code, binaries, and documentation into the folder of your choice.
Step 3: Register the Prism Library Binaries with Visual Studio
Registering the Prism Library with Visual Studio is not required, but for many developers, doing this simplifies
referencing the Prism Library assets in their own projects. If you elect to register the binaries, they will be listed in the
Visual Studio Add References dialog box when adding a reference. If you elect to not register the binaries, you will
need to manually set a file reference to the Prism Library binaries in your projects. The Prism Library signed assemblies
will be placed in the following folders:
{prism}\Bin\Desktop
{prism}\Bin\Silverlight
{prism}\Bin\Phone
To register the Prism Library binaries, launch the RegisterPrismBinaries.bat batch file located in the folder where you
extracted Prism. This batch file creates a temporary .reg file with the information required to register the Desktop,
Silverlight, and Phone binaries and uses it to update the registry. Because updating the registry is a privileged
operation, a User Account Control (UAC) prompt will appear if you do not have elevated privileges. For additional
information about UAC, see "What is User Account Control" at
http://windows.microsoft.com/en-US/windows7/What-is-User-Account-Control.
Note:
At most, one copy of the binaries can be registered using the script; if multiple copies of the Prism Library are
registered, only the binaries for the last registered copy will be available in Visual Studio.
Documentation
Prism includes the following documentation:
Prism4.chm is the guidance documentation.
Prism4APIReference-Desktop.chm is the class library reference documentation for creating WPF applications with
Prism.
Prism4APIReference-Silverlight.chm is the class library reference documentation for creating Silverlight
applications with Prism.
Prism4APIReference-Phone.chm is the class library reference documentation for creating Windows Phone 7
applications with Prism.
QuickStarts
The following information gives you an idea of the areas where Prism provides guidance and how to run the
QuickStarts.
Basic MVVM QuickStart
The Basic MVVM QuickStart demonstrates how to build a very simple application that implements the MVVM pattern.
This is provided to help you learn the basic concepts of the MVVM pattern.
The Basic MVVM QuickStart represents a subset of a survey application. A survey with different types of questions is
shown; after the questionnaire is completed, it can be submitted. The user can also choose to reset the answers to
the questions.
Page 4
To run the Basic MVVM QuickStart:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Silverlight
Only - Basic MVVM QuickStart.bat
3.
Set the BasicMVVMApp.Web project as the startup project.
4.
Set BasicMVVMAppTestPage.html as the start page.
5.
Press F5.
For more information about the Basic MVVM QuickStart, see Basic MVVM QuickStart.
MVVM QuickStart
The MVVM QuickStart demonstrates how to build an application that implements the MVVM User Interface (UI) design
pattern; it shows some of the more common programming tasks that developers can face, such as validation, UI
interactions, and data templates.
The MVVM QuickStart represents a subset of a survey application. A survey with different types of questions is
shown; after the questionnaire is completed, it can be submitted. The user can also choose to reset the answers to
the questions.
To run the MVVM QuickStart:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Silverlight
Only - MVVM QuickStart.bat
3.
Set the MVVM project as the startup project.
4.
Press F5.
For more information about the MVVM QuickStart, see MVVM QuickStart.
Modularity QuickStarts
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. They also show how to use the new download
progress features of Prism 4.0.
To run the WPF version of the Modularity QuickStart using MEF:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Desktop only -
Open Modularity With Mef QuickStart.bat
3.
Set the ModularityWithMef.Desktop project as the startup project.
4.
Press F5.
To run the WPF version of the Modularity QuickStart using Unity:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Desktop only -
Open Modularity With Unity QuickStart.bat
3.
Set the ModularityWithUnity.Desktop project as the startup project.
4.
Press F5.
To run the Silverlight version of the Modularity QuickStart using MEF:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Silverlight
only - Open Modularity With Mef QuickStart.bat
3.
Set the ModularityWithMef.Silverlight.Web project as the startup project.
4.
Press F5.
To run the Silverlight version of the Modularity QuickStart using Unity:
1.
You must have completed the steps in Installing Prism.
2.
In Windows Explorer, double-click the following batch file to open the solution in Visual Studio: Silverlight
only - Open Modularity With Unity QuickStart.bat
3.
Set the ModularityWithUnity.Silverlight.Web project as the startup project.
4.
Press F5.
For more information about the modularity QuickStarts, see:
Modularity QuickStarts for WPF
Page 5
剩余341页未读,继续阅读
资源评论
- zawdsgp2015-03-19只是PDF檔啊,我想要安裝包
- xujianfei28512014-04-28这个就是一个pdf文件的教程,感觉挺专业的,有时间看看!
- w17964674822013-09-11安装完成之后没有找到文件,后来在知道应该把后缀改成.zip解压就可以了。
- ppppph2015-01-02的确是好东西啊,但有没有人翻译成中文?看得太累了
- 昵称不能为空噢噢噢噢2012-11-27英文的prism资料,讲得非常的详细,英语好的人可以看看。绝对值。
mayji1234
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功