You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.1 KiB
4.1 KiB
KnowledgeBase for Prism Guidance
- Official Site
- Existing Mitech-wpf use
Prism 4.x. The only official legacy reference is based on Prism 6- Its using
MEF Ioc (Dependency Injection). TheMEF DIwas removed from Prism 7.x and above. OnlyUnity Dependency Injectionsupported from Prism 7.x onward - MEF vs Unity Modularity Quick Start
- Its using
- The latest Prism Library is
8.1 - Prism 8 support NET 5 and dotnet Framework. Prism 6.x and below only DotNet Framework 4.8 and below.
Mitech-wpfwas migrated to Prism 6.3 on Feb 2023, as this is the last version to supportMEF DIContainer.
Legacy Documentation
- Prism 4 Demo. Migrated to Prism 6 link
- Prism 4 QuickGuide
- Prism 4 Guide
- Prism 5
- Another nice link
- Nuget : Prism 4.1
Migration Guides
-
Microsoft.Practices.Prism.ViewModelnamespace deprecated. Please useMicrosoft.Practices.Prism.Mvvm- The
BindableBaseclass was added to simplifyINotifyPropertyChangedinterface. - EventAggregator Namespace and API Changes. NEW
Prism.PubSubEventsnamespace - Regions Namespace API Changes
UriQueryclass was replaced with theNavigationParameters
- Namespace changes
- Refer to Prism 5 pdf for legacy changes
using Microsoft.Practices.Prism.ViewModel; // change to using Microsoft.Practices.Prism.Mvvm; using Microsoft.Practices.Prism.Mvvm.Desktop; using Microsoft.Practices.Prism.ShareInterfaces; -
- Breaking Changes
- Removed
Microsoft.Practicesfrom all namespaces
- Removed
- Add Nuget
Prism.Mef 6.3
# .NET cli > dotnet add package Prism.Mef --version 6.3.0 # Package Manager PM> NuGet\Install-Package Prism.Mef -Version 6.3.0- Created new xmlns namespace
http://prismlibrary.com/ - Namespace changes
// Prism 4 using Microsoft.Practices.Prism; using Microsoft.Practices.Prism.ViewModel; // change to Prism 6.3 using Prism.Mvvm// Prism 4 using Microsoft.Practices.Prism.MefExtensions.Modularity; using Microsoft.Practices.Prism.Modularity; // change to Prism 6.3 using Prism.Mef.Modularity; using Prism.Modularity;using Microsoft.Practices.Prism.Regions; // change to using Prism.Regionsusing Microsoft.Practices.Prism.Commands; // change to using Prism.Commands; - Breaking Changes
-
- Bootstrapper class need to move to Application class
- use
xmlns:prism="http://prismlibrary.com/"
-
- BIG changes. Release Notes
- No longer be shipping or supporting MEF for WPF
- New
Prism.IoCnamespace - For
Prism.WPF, introduced newPrismApplicationbase class.Bootstrapperclass deprecated.
-
- Release Notes
- AutoWireViewModel is now default to true
prism:ViewModelLocator.AutoWireViewModel="True" - Removed
ILoggerFacade. UsePrism.Plugin.Logging