Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Share code between WPF and Xamarin.Forms (mobile for iOS, Android and Windows Phone)

$
0
0

Hi,
I have fully working WPF application, written following MVVM pattern. So my View and ViewModel are properly separated.

I just read few articles about Xamarin.Forms cross-platform project. Of course it can (and should) be done using MVVM pattern as well. So my question is: Can I share code betten Desktop WPF application and Xamarin.Forms corss-platform (iOS,Android,WP) application?

I don't quite understand why xaml is different (i.e. StackPanel in WPF, StackLayout in Xamarin.Forms? This difference in syntax is mean:/). The best would be to share Views and ViewModels, but I could go View only, or ViewModels only too.

Best regards


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>