Hi there,
When using a Service Locator class to serve up ViewModels for your WPF pages to bind to. Should the ViewModels be Singleton scoped or Factory scoped? Is one generally a better idea for WPF applications??
I'm aware that in Silverlight, Singleton lends itself better to pages which are User Controls and are only moved into and out of the foreground. But up until trying to apply this pattern, i've been newing up instances of pages and their respective VMs everytime they are to be loaded.
Me and my colleague have gone through all the pluses and minuses for each option and theres nothing screaming out which is the better option for our scenario.
Thanks.