I have a
WPF app targeting .NET 4 which I am updating and maintaining for a customer. In the course of the project, we have also ported the functionality to a
Xamarin mobile app.
I was able to improve some of the model classes and other back end classes in order to directly port them to the
Xamarin app, but the
WPF app had a lot of business code nested into its view. At the time, I didn't have time to factor it out into the
ViewModel, but now I have created the
Xamarin app with a much better separation between
ViewModel. I am hoping to translate some of the nicer separated
ViewModel code back into the
WPF desktop app for the sake of even better code sharing and less redundancy. However, in the
Xamarin app I am using
Xamarin.Forms.MessagingCenter to send statuses back to the user and display modal popups.
So with all of the preamble, my question is this: What is a better messaging mechanism that I can utilize in both my
Xamarin app and my
WPF app to make my
ViewModel more portable? With the exception of an MVVM framework that works in both environments like
Prism, what are my options? The only one I can think of is using native
c# events, but that's why I'm here in case I'm missing a better alternative. Thanks!