New Post: Creating a multple window app like Outlook
Sorry, but I never got a notification that you responded. DO NOT use two bootstrappers. You would simply use scoped regions, and use a dialog service to show your multiple windows. Here is a version of...
View ArticleNew Post: MEF with Mulitple Copies of a Service and Pub/Sub
I am developing a desktop application in which each object has their own copy of a service. Each object has a number of views and the sevice performs an operation dependent on which view is currently...
View ArticleNew Post: Creating a multple window app like Outlook
Hi Brian, I carefully studied the IG Outlook code and applied a similar approach (scoped regions and a dialog service) to a reasonably complex Prism app (Mike Taulty's Email client app (ported to WPF))...
View ArticleNew Post: Creating a multple window app like Outlook
You have just completely over-complicated your entire app architecture. You get around the scoped region navigation issue by creating a simple IRegionManagerAware custom region behavior. This solves...
View ArticleNew Post: Creating a multple window app like Outlook
I completely missed the IRegionManagerAware interface with the RegionManagerAwareBehavior from the IG Outlook sample. So, instead of requesting the DI container to inject the IRegionManager, the idea...
View ArticleNew Post: Creating a multple window app like Outlook
Actually, loading dependent views is done with a simple region behavior and a custom attribute. This is all it take me to accomplish this task. I simply attribute my view with all the views that must...
View ArticleNew Post: Move to github?
Some Microsoft open source projects were moved to github. What will happen with Prism?
View ArticleNew Post: Move to github?
Stay tuned. Things are in the works and an announcement will be made regarding the future of Prism.
View ArticleNew Post: Creating a multple window app like Outlook
I see how that would work after looking at the IG Outlook’s XamRibbonRegionBehavior and RibbonTabAttribute code. Once the custom RegionBehavior knows the region and view names, I could call...
View ArticleNew Post: pub/sub: How to wait for all subscribers to complete
How can I wait for all subscribers to complete after a I publish an event before I continue execution to the next statement. _eventAggregator.GetEvent<MyEvent>().Publish(myData); //wait for all...
View ArticleNew Post: pub/sub: How to wait for all subscribers to complete
Unless your subscribers are executing asynchronously, execution won't continue until all have completed. Your code should work just fine as is
View ArticleNew Post: pub/sub: How to wait for all subscribers to complete
I have two publish events in a method. I want all the subscribers to finish the first publish before I call the second. None of the subscribers are being called while the method is executing. The first...
View ArticleNew Post: pub/sub: How to wait for all subscribers to complete
What you want is not possible without some other form of external locking based on the design of PubSubEvents (which I was directly part of). Events are supposed to be fire and forget from the...
View ArticleNew Post: pub/sub: How to wait for all subscribers to complete
Thank you for the response
View ArticleNew Post: OnPropertyChanged not fired when SetProperty is called
I have created a new VB project (named TestPrismVB), installed Prism and I have written this simple code:Imports Microsoft.Practices.Prism.Mvvm Public Class pruebaViewModel Inherits BindableBase...
View ArticleNew Post: OnPropertyChanged not fired when SetProperty is called
I can't explain what you are describing just based on your code. But bottom line the recommended pattern when you have co-dependent properties is to use OnPropertyChanged to raise the change...
View ArticleNew Post: OnPropertyChanged not fired when SetProperty is called
SOLVED: The problem was the word PROPERTY in:Private Property _oneProperty As String Public Property oneProperty As String The correct is:Private _oneProperty As String Public Property oneProperty As...
View ArticleNew Post: OnPropertyChanged not fired when SetProperty is called
Interesting. That didn't jump out at me since I rarely use VB. Guess VB was letting that somehow silently mask the intended public property from being called. Another good reason not to like VB. :)...
View Article