WPF应用程序框架(WAF)是一个轻量级的框架,可以帮助您创建结构良好的WPF应用程序。它支持你在申请一个分层的架构和模型 - 视图-ViewModel的MVVM的,MV-VM PresentationModel,(又名)模式。
下载概述:种平台(如.NET4.5,.NET4,.NET3.5,WPF,Windows Form,Silverlight3。)WPF应用程序框架(WAF)下载。
WPF Application Framework (WAF)
ViewModel: Contains types that help you to implement the Model-View-ViewModel Pattern.
DataModel: A base class supports you in applying the DataModel-View-ViewModel Pattern.
DelegateCommand: The DelegateCommand allows you to handle WPF commands in other classes than the View.
INotifyPropertyChanged: The base classes implement the INotifyPropertyChanged interface. The implementation checks the property name in DEBUG mode.
WeakEvent: First class support for the WPF WeakEvent Patterns which helps you to avoid memory leaks.
Validation: The DataErrorInfoSupport class brings the IDataErrorInfo interface with the DataAnnotations validation framework together.
ConverterCollection: This collection is able to keep the DataModels synchronized with an ObservableCollection of Models.
Services: Provides services to show a message or the open/save file dialog to the user.
Recent Files: The RecentFileList class provides the logic for a recent file list that can be loaded and stored in the application settings.
Unit Testing Extensions
Exceptions: The ExpectedException method test if an action results in a specified exception.
PropertyChanged: Provides a helper method to test if a property changed event is raised when a specific action is executed.
CanExecuteChangedEvent: A helper method to test if a CanExecute changed event is raised when a specific action is executed.
Samples
Email Client: A simple Email Client application that shows how to use the M-V-VM Pattern in a wizard oriented application.
Writer: A word processing application which uses a “tabbed MDI” as user interface. This sample shows how to use the Message and FileDialog service.
Book Library: Shows how to use the Entity Framework and Validation together with the MVVM pattern.
Localization: Demonstrates a simple way to localize a WPF application.