eventaggregator
How to verify the EventAggregator's unsubscribe method is called when disposing a ViewModel with Prism
I\'m struggling to write a test that confirms that I am correctly unsubscribing from an EventAggregator\'s message when it is closed. Anyone able to point out the (simple) answer?![详细]
2023-04-11 18:25 分类:问答How to determine who is calling the prism eventaggregator subscribe? or multiple subscribe calls
I have a subscribe method in one view model listening for publish events in another view model. For some reason, that I can\'t figure out, when the publish method is fired, the subscribe method runs m[详细]
2023-04-03 17:31 分类:问答Message publishing based programming?
Ever since learned about using event aggregators to publish messages instead of using events I\'ve managed to most events in my code (minus the ones that connect WPF control properties to 开发者_Stack[详细]
2023-03-28 10:58 分类:问答Caliburn.Micro. Automatically call eventaggregator.Subscribe() for IHandle implementors with Autofac
In Caliburn.Micro documentation the authors mention such possibility: documentation link IHandle inherits from a marker interface IHandle. This allows the use of casting to determine if an object i[详细]
2023-03-23 23:05 分类:问答Problem with Cal, EventAggregator, and Application.Deactivated
I\'m having an interesing problem with CAL and the event aggregator.I am attempting to publish an event when the app is deactivated or activated (application.activated and application.deactivated).Som[详细]
2023-03-20 23:32 分类:问答Should I use event aggregator only to prevent memory leaks?
We consider to use the Prism event aggregator for the purpose of reducing memory leaks due to 开发者_JAVA技巧event references.[详细]
2023-03-20 18:06 分类:问答EventAggregator Pattern: How To Pass Data?
I am looking at utilizing the Event Aggregator Pattern on a UI project I am working on (Silverlight/MVVM) to support loose coupling between views/viewmodels.We have written a few screens using a simpl[详细]
2023-03-08 03:26 分类:问答MethodInfo.Invoke Works only in Debug Mode for Prism EventAggregator
I have a extension method for Prism\'s EventAgregator to publish an event using reflection. The implementation is as follows:[详细]
2023-03-02 18:13 分类:问答event aggregator in MVVM
I\'m working for a while with silverlight and MVVM (in its simplest form, it\'s to say hand-made), but I barely understand what is an event aggregator (and how to make an implementation of this).[详细]
2023-02-20 04:00 分类:问答Rhino Mocks and PRISM EventAggregator
I need to do something that seems quite simple, but I cant seem to achieve it. I need to be able to write a unit test that calls the action and filter delegates of any subscription to an eventaggrega[详细]
2023-02-13 09:46 分类:问答