Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to share View Models between targeting MacOS and other Xamarin Forms target platforms

$
0
0

I'd like to be able to share view models between the recommended native MacOS target and other targets in a .NET Standard library.
MVVM isn't necessary as long as I can implement data binding in the MVC MacOS native style from the storyboard views and share the common platform independent view models.
I'd also like to avoid changing the other Xamarin Forms targets to use a 3rd party framework like MVVMLite or MVVMCross.
I'd also like to use .NET Standard for my view model library rather than PCL with conditional compilation. Is there a way to avoid using a MacOS specific base type in my view models.

How do you recommend this be done without having the common view models depend on the MacOS types or duplicating the properties in the MacOS version?


Viewing all articles
Browse latest Browse all 204402

Trending Articles