Reputation: 4302
I am new to both Android and iOS and just got started to learn Xamarin.Forms. (I was a WPF/Silverlight developer)
I spent few days Xamarin.Forms and it was so far so good. Then I decided I want to learn MvvmCross for IoC and Navigation Service.
However I have been struggle on setting up MvvmCross in my project for few days. I have been reading the tutorial in Mvvmcross offical site and tries the mimic samples from their github here.
However, I found out all their example is using native view UI from the android project. But what I wanted is using the same xaml view that defined in the shared project for both Android and iOS.
I couldn't find out
Upvotes: 0
Views: 91
Reputation: 4405
First things first. You shouldn't be using Shared projects, they're evil (cause of the preprocessor directives and a code mess they can cause). Use .NETStandard option (new PCL's).
Secondly, have a look at the step by step blog post on setting up new Xamarin.Forms project with MvvCross v6, by one of the contributors. He's got a GitHub repo, with Xamarin and Xamarin.Forms samples you could run and play around with
There's also a Playground project in the MvvmCross sources, which is being used by contributors to test stuff out. Everything with .Forms
affix in the name of the project is a Xamarin.Forms project. You could have a look at that, to get a clue on how things should be structured
Upvotes: 2