I want to migrate a project written with Prism 4 into Prism 6.
In Prism 4 the CompositePresentationEvent<T>
type is under Microsoft.Practices.Composite.Presentation.Events
namespace.
But when I pulled Prism 6 from nugget and removed old Prism 4 references, I could not see this event type anywhere in Prism 6 namespaces.
Anyone can help me a bit?
The CompositePresentationEvent has been removed in Prism 6. If I recall correctly, if was deprecated in Prism 5, and removed completely in Prism 6. Now, you need to use the PubSubEvent<TPayload> in the Prism.Events namespace.
The recommended migration is to use Prism.Plugin.Logging or whatever 3rd party logging framework you prefer. Information on getting started with Prism.Plugin.Logging can be found here. New ContainerLocator has been added to Prism.Core and it replaces Common Service Locator in Prism.Wpf.
The recommended migration is to use Prism.Plugin.Logging or whatever 3rd party logging framework you prefer. Information on getting started with Prism.Plugin.Logging can be found here.
A Prism component raises a CPE by publishing it to the Event Aggregator, which notifies all subscribers to the event. Since a CPE is used across the entire application, its class is located in the demo app’s Common project, in the Events folder.
The CompositePresentationEvent
has been removed in Prism 6. If I recall correctly, if was deprecated in Prism 5, and removed completely in Prism 6.
Now, you need to use the PubSubEvent<TPayload>
in the Prism.Events
namespace.
What R. Richards wrote is correct and has thus been correctly marked as an answer. Might I however offer you the following link as a reference:
Upgrading from Prism Library 4.1
As the title suggests it refers to upgrading from version 4.1 to 5.0 but there are, apart from the change mentioned here, other changes noted there which you might find helpful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With