One of the things I liked about the getting started experience with Prism was that there was a Visual Studio extension that made creating a new project super simple. Whilst I know that MvvmCross doesn’t provide something like that out of the box, I decided to take a look at some of the project/solution templates that the community have created. The Getting Started page on the MvvmCross website does maintain a list of MvvmCross templates but I must confess that some of these are a little dated. I just went through and opened each of the links, and there were only two that seemed to be recent, Mvx Toolkit and MvxScaffolding. I downloaded both extensions and just happened to try out MvxScaffolding first. Here’s a quick summary of creating a new Xamarin.Forms application using MvxScaffolding
Search for Mvx to find the scaffolding templates
Basic project details
Now we’re into the MvxScaffolding custom dialog – wow, look at how nice this is.
I went with the Single Item template – it’s a tad confusing that you have to click on the grey circle to pick each option, rather than clicking the whole card. Next up, pick the platform and which test projects you want generated.
I added UWP support, and asked for all the test projects
A quick summary before the projects are created
The final solution
And of course, the running application.
This was a bit mind blowing to be honest – the level of detail in this extension was awesome and I was able to generate the runnable application in under a minute. I like the way the projects are separated and that it can generate all the test projects.
you are so correct, mind blowing. I am using it and going forward with a medium size project for orthopedics.
I was desperately ing for a MVVM framework for Xamarin.Forms that supports ViewModel first and was just about to give up on MvvmCross due to their confusing documentation and limited number of examples when I stumbled acrossyour post. And see, it creates a working example. At least a chance to have a look how things are arranged. 🙂