mvvmlight icon indicating copy to clipboard operation
mvvmlight copied to clipboard

Using the none default instance of messenger in view

Open jregnier opened this issue 6 years ago • 2 comments

I was wondering if you had any techniques for using a custom instance of the messenger in the code behind of a view. I would rather create my own instance of the messenger and pass that around than using the singleton instance. Thanks

jregnier avatar Apr 30 '18 15:04 jregnier

are you looking for something like this? http://dotnetpattern.com/mvvm-light-messenger There is a way for custom messenger.

gs-ts avatar Apr 30 '18 17:04 gs-ts

passing my messenger to the ViewModelBase is what I'm currently doing for my ViewModels but how do I use my messenger in the code behind of a view

jregnier avatar Apr 30 '18 17:04 jregnier